From c590c9ff3b3458644cbb8056a45000c95754c906 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Jun 11 2020 16:23:59 +0000 Subject: Re-enable crons on bodhi-backend01.iad2 as we think we are ready Revert "iad2: bodhi-backend01.iad2: disable some crons until we are ready" This reverts commit e93bb1a7883e2430705838dc4761c95642e4f1a1. --- diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index 822fc6d..a16f9b3 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -126,7 +126,7 @@ - name: put bodhi-automated-pushes.py in place copy: src=bodhi-automated-pushes.py dest=/usr/local/bin/bodhi-automated-pushes.py mode=0755 - when: env == "production" and datacenter == 'phx2' + when: env == "production" tags: - config - bodhi @@ -135,14 +135,14 @@ # These next two are used by quick-fedora-mirror - name: put update-fullfiletimelist in place copy: src="{{ files }}/scripts/update-fullfiletimelist" dest=/usr/local/bin/update-fullfiletimelist mode=0755 - when: env == "production" and datacenter == 'phx2' + when: env == "production" tags: - config - bodhi - cron - name: add create-filelist script from quick-fedora-mirror copy: src="{{ files }}/scripts/create-filelist" dest=/usr/local/bin/create-filelist mode=0755 - when: env == "production" and datacenter == 'phx2' + when: env == "production" tags: - config - bodhi @@ -150,7 +150,7 @@ - name: Set the updates sync cron job copy: src=new-updates-sync.cron dest=/etc/cron.d/updates-sync - when: env == "production" and datacenter == 'phx2' + when: env == "production" tags: - config - bodhi @@ -158,7 +158,7 @@ - name: Set the bodhi-automated-pushes cron job template: src=bodhi-automated-pushes.cron.j2 dest=/etc/cron.d/bodhi-automated-pushes - when: env == "production" and datacenter == 'phx2' + when: env == "production" tags: - config - bodhi @@ -169,7 +169,7 @@ cron: name="directory-sizes-update" minute="30" hour="19" user="ftpsync" job="/usr/bin/find /pub/alt/ /pub/archive/ /pub/fedora-secondary/ /pub/fedora/ /pub/epel/ -type d ! -path '/pub/alt/screenshots/f21/source' | grep -v snapshot | /usr/bin/xargs -n 1 /usr/bin/du --exclude=.snapshot -sh > /tmp/DIRECTORY_SIZES.txt 2> /dev/null; cp /tmp/DIRECTORY_SIZES.txt /pub/" cron_file=directory-sizes-update - when: env == "production" and datacenter == 'phx2' + when: env == "production" tags: - config - bodhi