From 078110006bf9e65e1280a07b7d1553941d4193c7 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Wed, 22 Jul 2015 19:18:52 +0000 Subject: [PATCH] bodhi2: Fix the last commit --- roles/bodhi2/backend/tasks/main.yml | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index 3be9cf02f5..4667500118 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -217,30 +217,12 @@ tags: - config -- name: setup basic /etc/bodhi/ contents - template: > - src="staging.ini.j2" - dest="/etc/bodhi/production.ini" +- name: have the masher own the bodhi config + file: > + path="/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 + when: inventory_hostname.startswith('bodhi') tags: - config - bodhi