Merge "Ensure lockfile dir is created for bridge.o.o"

This commit is contained in:
Zuul 2019-03-19 10:18:58 +00:00 committed by Gerrit Code Review
commit 5538493af2

View File

@ -13,7 +13,9 @@
cron:
name: run_all.sh
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 }}"
hour: "{{ update_cron_interval.hour }}"
day: "{{ update_cron_interval.day }}"