Allow choosing Github branch dynamically.
This commit is contained in:
parent
bb4fabf833
commit
246e83a13a
@ -67,3 +67,9 @@
|
||||
lynis_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/lynis/{{ lynis_report_name }}"
|
||||
nmap_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/nmap/{{ nmap_report_name }}"
|
||||
when: not leet_drive_details.stat.exists
|
||||
|
||||
|
||||
- name: General | Facts | System | Ansible Branch
|
||||
set_fact:
|
||||
branch: main
|
||||
when: branch is not defined
|
8
hosts
8
hosts
@ -1,3 +1,7 @@
|
||||
;;;;;;; Available options - all require lowercase values ;;;;;;
|
||||
; branch : Provide the Github branch that the machine should poll.
|
||||
; Exampel: main, dev
|
||||
;
|
||||
[everything]
|
||||
localhost
|
||||
|
||||
@ -83,5 +87,5 @@ reverse-proxy certbot=true
|
||||
nextcloud certbot=true
|
||||
wordpress certbot=true
|
||||
usb-server
|
||||
parrotsec-dev-www domain=hyperling.com hugo=true hugo_site_path=/mnt/leet/Code/parrotsec/website
|
||||
my-parrotsec-dev-www hugo=true domain=hyperling.com hugo_site_path=/mnt/leet/Code/parrotsec/website-hyperling
|
||||
parrotsec-dev-www branch=dev domain=hyperling.com hugo=true hugo_site_path=/mnt/leet/Code/parrotsec/website
|
||||
my-parrotsec-dev-www branch=dev hugo=true domain=hyperling.com hugo_site_path=/mnt/leet/Code/parrotsec/website-hyperling
|
||||
|
@ -6,7 +6,7 @@
|
||||
user: ansible
|
||||
name: "Ansible Sync"
|
||||
minute: "*/15"
|
||||
job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git --checkout main"
|
||||
job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git --checkout {{ branch }}"
|
||||
state: present
|
||||
disabled: no
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user