From 848101e4a1c15763f260d4233483929c6afea4df Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 18 Oct 2016 11:21:34 +0200 Subject: [PATCH] Do not install the cron job in stg rather than installing an empty one --- roles/fedocal/tasks/main.yml | 2 +- roles/fedocal/templates/fedocal-reminder.cron | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/fedocal/tasks/main.yml b/roles/fedocal/tasks/main.yml index 3bd7f8ad87..50c2d9afd4 100644 --- a/roles/fedocal/tasks/main.yml +++ b/roles/fedocal/tasks/main.yml @@ -46,7 +46,7 @@ - restart apache - name: Install the reminder cron job - when: inventory_hostname.startswith(('fedocal01.stg', 'fedocal02')) + when: inventory_hostname.startswith('fedocal02') template: src={{ item.file }} dest={{ item.location }}/{{ item.file }} with_items: diff --git a/roles/fedocal/templates/fedocal-reminder.cron b/roles/fedocal/templates/fedocal-reminder.cron index 2bc3ca56d5..55ce636397 100644 --- a/roles/fedocal/templates/fedocal-reminder.cron +++ b/roles/fedocal/templates/fedocal-reminder.cron @@ -3,6 +3,4 @@ # The frequency set here should be consistent with the one set in the # configuration file. # -{% if env == "production" %} */30 * * * * root FEDOCAL_CONFIG=/etc/fedocal/fedocal.cfg /usr/bin/fedocal_cron.py -{% endif %}