mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Do not install the cron job in stg rather than installing an empty one
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user