Ensure lockfile dir is created for bridge.o.o
After we reboot the lockfile directory disappears. Recreate it before running the puppet that would create it anyway. Change-Id: Ia0779240b9e516090237dfbe61404fab114c6d4a
This commit is contained in:
parent
642552157b
commit
e9ca0bc9ad
@ -13,7 +13,9 @@
|
|||||||
cron:
|
cron:
|
||||||
name: run_all.sh
|
name: run_all.sh
|
||||||
state: present
|
state: present
|
||||||
job: 'flock -n /var/run/ansible/run_all.lock bash /opt/system-config/run_all.sh -c >> /var/log/ansible/run_all_cron.log 2>&1'
|
# Note /var/run is ephemeral; so after a reboot we need to
|
||||||
|
# ensure the lockfile dir is there before we run...
|
||||||
|
job: 'mkdir -p /var/run/ansible; flock -n /var/run/ansible/run_all.lock bash /opt/system-config/run_all.sh -c >> /var/log/ansible/run_all_cron.log 2>&1'
|
||||||
minute: "{{ update_cron_interval.minute }}"
|
minute: "{{ update_cron_interval.minute }}"
|
||||||
hour: "{{ update_cron_interval.hour }}"
|
hour: "{{ update_cron_interval.hour }}"
|
||||||
day: "{{ update_cron_interval.day }}"
|
day: "{{ update_cron_interval.day }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user