
Puppet cron is no longer being run on puppetmaster (yay!) so start running it in cron from bridge. Change-Id: Idc579a2660a5450092544c21a2e9e6cb9688e5f9
16 lines
556 B
YAML
16 lines
556 B
YAML
- name: Ensure directory exists for lock files
|
|
file:
|
|
state: directory
|
|
path: /var/run/ansible
|
|
|
|
- name: Set up cron job for running run_all.sh
|
|
cron:
|
|
name: run_all.sh
|
|
state: present
|
|
job: 'flock -n /var/run/ansible/run_all.lock bash /opt/system-config/run_all.sh >> /var/log/ansible/run_all_cron.log 2>&1'
|
|
minute: "{{ update_cron_interval.minute }}"
|
|
hour: "{{ update_cron_interval.hour }}"
|
|
day: "{{ update_cron_interval.day }}"
|
|
month: "{{ update_cron_interval.month }}"
|
|
weekday: "{{ update_cron_interval.weekday }}"
|