bodhi2: Have the masher own the config on the backend

This commit is contained in:
Luke Macken 2015-07-22 19:16:15 +00:00
parent a1c77e7d30
commit ec78fda22e

View file

@ -216,3 +216,31 @@
when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
tags:
- 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