s3-mirror: but add it to the cron, not the task

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2019-11-13 19:38:59 +00:00 committed by Pierre-Yves Chibon
parent 7db6cfca5d
commit b6bcf72a46

View file

@ -79,8 +79,8 @@
cron: name="s3sync-updates-current" minute="0" hour="2,7,10" user="s3-mirror" cron: name="s3sync-updates-current" minute="0" hour="2,7,10" user="s3-mirror"
job='/usr/local/bin/lock-wrapper s3sync-updates-dev-cur-plus-1-x86_64 "/usr/local/bin/s3-sync-path.sh /pub/fedora/linux/development/{{ FedoraCycleNumber|int + 1 }}/Everything/x86_64/os/" 2>&1 | /usr/local/bin/nag-once s3-updates-dev-cur-plus-1-x86_64.sh 1d 2>&1' job='/usr/local/bin/lock-wrapper s3sync-updates-dev-cur-plus-1-x86_64 "/usr/local/bin/s3-sync-path.sh /pub/fedora/linux/development/{{ FedoraCycleNumber|int + 1 }}/Everything/x86_64/os/" 2>&1 | /usr/local/bin/nag-once s3-updates-dev-cur-plus-1-x86_64.sh 1d 2>&1'
cron_file=s3-updates-dev-cur-plus-1-x86_64.sh cron_file=s3-updates-dev-cur-plus-1-x86_64.sh
disabled={{not FedoraBranched|bool}}
when: env != 'staging' and inventory_hostname.startswith('mm-backend01.') when: env != 'staging' and inventory_hostname.startswith('mm-backend01.')
disabled: not FedoraBranched
tags: tags:
- s3-mirror - s3-mirror
@ -88,8 +88,8 @@
cron: name="s3sync-updates-current" minute="0" hour="4,11,18" user="s3-mirror" cron: name="s3sync-updates-current" minute="0" hour="4,11,18" user="s3-mirror"
job='/usr/local/bin/lock-wrapper s3sync-updates-dev-cur-plus-1-aarch64 "/usr/local/bin/s3-sync-path.sh /pub/fedora/linux/development/{{ FedoraCycleNumber|int + 1 }}/Everything/aarch64/os/" 2>&1 | /usr/local/bin/nag-once s3-updates-dev-cur-plus-1-aarch64.sh 1d 2>&1' job='/usr/local/bin/lock-wrapper s3sync-updates-dev-cur-plus-1-aarch64 "/usr/local/bin/s3-sync-path.sh /pub/fedora/linux/development/{{ FedoraCycleNumber|int + 1 }}/Everything/aarch64/os/" 2>&1 | /usr/local/bin/nag-once s3-updates-dev-cur-plus-1-aarch64.sh 1d 2>&1'
cron_file=s3-updates-dev-cur-plus-1-aarch64.sh cron_file=s3-updates-dev-cur-plus-1-aarch64.sh
disabled={{not FedoraBranched|bool}}
when: env != 'staging' and inventory_hostname.startswith('mm-backend01.') when: env != 'staging' and inventory_hostname.startswith('mm-backend01.')
disabled: not FedoraBranched
tags: tags:
- s3-mirror - s3-mirror