Generalize pull role, apply it to desktop machines

This commit is contained in:
Salt 2020-03-21 22:29:36 -05:00
parent 3708b8f254
commit 4e57697906
3 changed files with 6 additions and 2 deletions

View File

@ -5,4 +5,6 @@
roles: roles:
- common - common
- desktop - desktop
- localansible - role: localansible
vars:
pullplaybook: "desktop.yml"

View File

@ -0,0 +1,2 @@
# vim:ft=ansible:
pullplaybook: "ec2.yml"

View File

@ -49,5 +49,5 @@
minute: "0" minute: "0"
hour: "*/12" hour: "*/12"
name: ansible-pull 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 become: true