Generalize pull role, apply it to desktop machines
This commit is contained in:
parent
3708b8f254
commit
4e57697906
@ -5,4 +5,6 @@
|
||||
roles:
|
||||
- common
|
||||
- desktop
|
||||
- localansible
|
||||
- role: localansible
|
||||
vars:
|
||||
pullplaybook: "desktop.yml"
|
||||
|
2
roles/ansiblehost/defaults/main.yml
Normal file
2
roles/ansiblehost/defaults/main.yml
Normal file
@ -0,0 +1,2 @@
|
||||
# vim:ft=ansible:
|
||||
pullplaybook: "ec2.yml"
|
@ -49,5 +49,5 @@
|
||||
minute: "0"
|
||||
hour: "*/12"
|
||||
name: ansible-pull
|
||||
job: "cd /opt/ansible-repo && HOME=/root /usr/local/bin/ansible-playbook ec2.yml --vault-password-file /root/ansiblevaultpass > /var/log/ansible-pull.log 2>&1"
|
||||
job: "cd /opt/ansible-repo && HOME=/root /usr/local/bin/ansible-playbook \"{{ pullplaybook }}\" --vault-password-file /root/ansiblevaultpass > /var/log/ansible-pull.log 2>&1"
|
||||
become: true
|
||||
|
Loading…
Reference in New Issue
Block a user