summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2017-08-17 15:10:28 +0000
committerRalph Bean <rbean@redhat.com>2017-08-17 15:10:28 +0000
commit31aa4768de31fb2b31d5a757dc1c82a2e78df1cf (patch)
tree2897ff20aae33b90e1c8bd09fc46dc8bd22c19db
parent11e384583fae0d81cfe25ac32ce86a6d5d959cb4 (diff)
downloadansible-31aa4768de31fb2b31d5a757dc1c82a2e78df1cf.tar.gz
ansible-31aa4768de31fb2b31d5a757dc1c82a2e78df1cf.tar.xz
ansible-31aa4768de31fb2b31d5a757dc1c82a2e78df1cf.zip
Remove old pkgdb cronjobs.
-rw-r--r--roles/pkgdb2/tasks/main.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/roles/pkgdb2/tasks/main.yml b/roles/pkgdb2/tasks/main.yml
index 72db5ec34..26d04f2b8 100644
--- a/roles/pkgdb2/tasks/main.yml
+++ b/roles/pkgdb2/tasks/main.yml
@@ -61,16 +61,17 @@
notify:
- restart apache
-- name: Install the pkgdb cron jobs - sync bugzilla, update pkg info
- when: inventory_hostname.startswith('pkgdb02')
- template: src={{ item.file }}
- dest={{ item.location }}/{{ item.file }}
+- name: Remove old cronjobs.
+ file:
+ path: "{{ item.location }}/{{ item.file }}"
+ state: absent
with_items:
- { file: 'pkgdb-sync-bugzilla.cron', location: /etc/cron.d }
- { file: 'pkgdb_update_package_info.cron', location: /etc/cron.d }
tags:
- config
- pkgdb
+ - cron
- name: update the base_url in update_package_info
command: sed -i -e 's|https://dl.fedoraproject.org|http://dl.phx2.fedoraproject.org|' /usr/bin/update_package_info.py