From ec78fda22ea265bfc020719f415acff081647cff Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Wed, 22 Jul 2015 19:16:15 +0000 Subject: [PATCH] bodhi2: Have the masher own the config on the backend --- roles/bodhi2/backend/tasks/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index 6bba13c830..3be9cf02f5 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -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