Set path in cron so we can find ansible-playbook
ansible-playbook is in /usr/local/bin which is not in the path in cron. Change-Id: I633c021936dfbbfdb022aa3d052fe88f32d2ef6a
This commit is contained in:
parent
759015f101
commit
de7fbba912
@ -3,6 +3,12 @@
|
||||
state: directory
|
||||
path: /var/run/ansible
|
||||
|
||||
- name: Set PATH for cron
|
||||
cron:
|
||||
name: PATH
|
||||
env: yes
|
||||
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
|
||||
- name: Set up cron job for running run_all.sh
|
||||
cron:
|
||||
name: run_all.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user