bodhi2: Have the masher own the config on the backend
This commit is contained in:
parent
a1c77e7d30
commit
ec78fda22e
1 changed files with 28 additions and 0 deletions
|
@ -216,3 +216,31 @@
|
||||||
when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
|
when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: setup basic /etc/bodhi/ contents
|
||||||
|
template: >
|
||||||
|
src="staging.ini.j2"
|
||||||
|
dest="/etc/bodhi/production.ini"
|
||||||
|
owner=masher
|
||||||
|
group=masher
|
||||||
|
mode=0600
|
||||||
|
when: inventory_hostname.startswith('bodhi') and env == 'staging'
|
||||||
|
notify:
|
||||||
|
- restart httpd
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- bodhi
|
||||||
|
|
||||||
|
- name: setup basic /etc/bodhi/ contents
|
||||||
|
template: >
|
||||||
|
src="production.ini.j2"
|
||||||
|
dest="/etc/bodhi/production.ini"
|
||||||
|
owner=masher
|
||||||
|
group=masher
|
||||||
|
mode=0600
|
||||||
|
when: inventory_hostname.startswith('bodhi') and env == 'production'
|
||||||
|
notify:
|
||||||
|
- restart httpd
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- bodhi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue