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 %}