Release HUGO and scm-dev.sh additions. (#1)
* Create HUGO file. * Add HUGO. * Add script for running system against development branch.
This commit is contained in:
parent
1b5be7cebe
commit
a62336f139
9
hosts
9
hosts
@ -51,7 +51,7 @@ x570 amdgpu=true nanominer=true nanominer_gpu=eth nanominer_gpus=0 nanominer_gpu
|
|||||||
[server]
|
[server]
|
||||||
;;;;;;; Parameters ;;;;;;
|
;;;;;;; Parameters ;;;;;;
|
||||||
;
|
;
|
||||||
; domain : Set to the domain which gives the server its FQDN
|
; domain : Set to the domain which gives the server its FQDN.
|
||||||
; Example: hyperling.com
|
; Example: hyperling.com
|
||||||
;
|
;
|
||||||
; onlyoffice : Set to anything for this server to be configured as an OnlyOffice server.
|
; onlyoffice : Set to anything for this server to be configured as an OnlyOffice server.
|
||||||
@ -66,7 +66,10 @@ x570 amdgpu=true nanominer=true nanominer_gpu=eth nanominer_gpus=0 nanominer_gpu
|
|||||||
; influxdb2 : Set to anything for this server to be configured as an Influx 2 DB + web server.
|
; influxdb2 : Set to anything for this server to be configured as an Influx 2 DB + web server.
|
||||||
; Example: true
|
; Example: true
|
||||||
;
|
;
|
||||||
; certbot : Set to anything to add cron job for `certbot renew`
|
; certbot : Set to anything to add cron job for `certbot renew`.
|
||||||
|
; Example: true
|
||||||
|
;
|
||||||
|
; hugo : Set to anything to install HUGO static website generator.
|
||||||
; Example: true
|
; Example: true
|
||||||
;
|
;
|
||||||
onlyoffice domain=hyperling.com onlyoffice=true
|
onlyoffice domain=hyperling.com onlyoffice=true
|
||||||
@ -80,3 +83,5 @@ reverse-proxy certbot=true
|
|||||||
nextcloud certbot=true
|
nextcloud certbot=true
|
||||||
wordpress certbot=true
|
wordpress certbot=true
|
||||||
usb-server
|
usb-server
|
||||||
|
parrotsec-dev-www hugo=true domain=hyperling.com
|
||||||
|
my-parrotsec-dev-www hugo=true domain=hyperling.com
|
@ -140,6 +140,9 @@
|
|||||||
- include: tasks/server/cron/certbot.yml
|
- include: tasks/server/cron/certbot.yml
|
||||||
when: certbot is defined
|
when: certbot is defined
|
||||||
|
|
||||||
|
- include: tasks/server/software/hugo.yml
|
||||||
|
when: hugo is defined
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Provide information for analysis.
|
# Provide information for analysis.
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
user: ansible
|
user: ansible
|
||||||
name: "Ansible Sync"
|
name: "Ansible Sync"
|
||||||
minute: "*/15"
|
minute: "*/15"
|
||||||
job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git"
|
job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git --checkout main"
|
||||||
state: present
|
state: present
|
||||||
disabled: no
|
disabled: no
|
||||||
|
|
||||||
|
@ -35,4 +35,23 @@
|
|||||||
- name: General | Scripts | Root | push.sh Permissions
|
- name: General | Scripts | Root | push.sh Permissions
|
||||||
file:
|
file:
|
||||||
path: "{{ user_root.home }}/bin/push.sh"
|
path: "{{ user_root.home }}/bin/push.sh"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
|
|
||||||
|
- name: General | Scripts | Root | scm-dev.sh
|
||||||
|
blockinfile:
|
||||||
|
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
||||||
|
block: |
|
||||||
|
# 20210713 - Make life easier for development!
|
||||||
|
push.sh
|
||||||
|
{{ ansible_pull_exec.stdout }} -U https://github.com/Hyperling/ansible.git --checkout dev
|
||||||
|
marker: '{mark}'
|
||||||
|
marker_begin: "#!{{ bash_exec.stdout }}"
|
||||||
|
marker_end: "exit 0"
|
||||||
|
state: present
|
||||||
|
create: yes
|
||||||
|
|
||||||
|
- name: General | Scripts | Root | scm-dev.sh Permissions
|
||||||
|
file:
|
||||||
|
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
||||||
|
mode: '0755'
|
||||||
|
17
tasks/server/software/hugo.yml
Normal file
17
tasks/server/software/hugo.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Install HUGO to host sites like parrotsec.org
|
||||||
|
|
||||||
|
- name: Server | Software | HUGO | Variables (apt)
|
||||||
|
set_fact:
|
||||||
|
hugo_package: hugo
|
||||||
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
|
- name: Server | Software | HUGO | Variables (FreeBSD)
|
||||||
|
set_fact:
|
||||||
|
hugo_package: gohugo
|
||||||
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
|
|
||||||
|
- name: Server | Software | HUGO | Variables (FreeBSD)
|
||||||
|
package:
|
||||||
|
name: "{{ hugo_package }}"
|
||||||
|
state: present
|
Loading…
x
Reference in New Issue
Block a user