Move the pkgdb-sync-bugzilla.cron to pkgdb02 and ansible
This commit is contained in:
parent
63217d3711
commit
afe1f6217d
2 changed files with 13 additions and 0 deletions
|
@ -48,6 +48,15 @@
|
||||||
notify:
|
notify:
|
||||||
- restart apache
|
- 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
|
- name: set sebooleans so pkgdb2 can talk to the db
|
||||||
action: seboolean name=httpd_can_network_connect_db
|
action: seboolean name=httpd_can_network_connect_db
|
||||||
state=true
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue