Merge "mirror-update: seed cron time with unique job name"

This commit is contained in:
Zuul 2019-07-03 04:24:25 +00:00 committed by Gerrit Code Review
commit d56082920c

View File

@ -45,7 +45,7 @@
state: present
job: 'flock -n /var/run/{{ item }}-mirror.lock {{ item }}-mirror-update mirror.{{ item }} >> /var/log/rsync-mirrors/{{ item }}.log 2>&1'
hour: '*/2'
minute: '{{ 45 | random(seed=inventory_hostname) }}'
minute: '{{ 45 | random(seed=item) }}'
loop: '{{ rsync_update_scripts }}'
- name: Install logrotate rules