From b6bcf72a4691c66493b315eb81eb1899b3e5b34f Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Wed, 13 Nov 2019 19:38:59 +0000 Subject: [PATCH] s3-mirror: but add it to the cron, not the task Signed-off-by: Rick Elrod --- roles/s3-mirror/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/s3-mirror/tasks/main.yml b/roles/s3-mirror/tasks/main.yml index e8f6967b80..9e4ed0aa4f 100644 --- a/roles/s3-mirror/tasks/main.yml +++ b/roles/s3-mirror/tasks/main.yml @@ -79,8 +79,8 @@ 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' cron_file=s3-updates-dev-cur-plus-1-x86_64.sh + disabled={{not FedoraBranched|bool}} when: env != 'staging' and inventory_hostname.startswith('mm-backend01.') - disabled: not FedoraBranched tags: - s3-mirror @@ -88,8 +88,8 @@ 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' cron_file=s3-updates-dev-cur-plus-1-aarch64.sh + disabled={{not FedoraBranched|bool}} when: env != 'staging' and inventory_hostname.startswith('mm-backend01.') - disabled: not FedoraBranched tags: - s3-mirror