Try to fix ansiblehost cronjob by setting HOME
This commit is contained in:
parent
b5ca563b6e
commit
b2c402b97e
@ -54,5 +54,5 @@
|
|||||||
minute: "0"
|
minute: "0"
|
||||||
hour: "*/12"
|
hour: "*/12"
|
||||||
name: ansible-pull
|
name: ansible-pull
|
||||||
job: "cd /opt/ansible-repo && /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 ec2.yml --vault-password-file /root/ansiblevaultpass > /var/log/ansible-pull.log 2>&1"
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user