mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 03:52:09 +08:00
Move the pkgdb-sync-bugzilla.cron to pkgdb02 and ansible
This commit is contained in:
@@ -48,6 +48,15 @@
|
||||
notify:
|
||||
- restart apache
|
||||
|
||||
- name: Install the pkgdb <-> bugzilla sync script
|
||||
when: inventory_hostname.startswith('pkgdb02')
|
||||
template: src={{ item.file }}
|
||||
dest={{ item.location }}/{{ item.file }}
|
||||
with_items:
|
||||
- { file: 'pkgdb-sync-bugzilla.cron', location: /etc/cron.d }
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: set sebooleans so pkgdb2 can talk to the db
|
||||
action: seboolean name=httpd_can_network_connect_db
|
||||
state=true
|
||||
|
||||
4
roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron
Normal file
4
roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron
Normal file
@@ -0,0 +1,4 @@
|
||||
# Synchronize pkgdb with bugzilla
|
||||
#
|
||||
*/10 * * * * root PKGDB2_CONFIG=/etc/pkgdb2/pkgdb2.cfg /usr/bin/pkgdb-sync-bugzilla
|
||||
|
||||
Reference in New Issue
Block a user