From 751afb19e3a9bcf2702f470346e2eec643163d66 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 19 May 2015 17:06:09 +0200 Subject: [PATCH] Adjust the group ownership and mode of the pagure.cf in /etc/pagure This is required to allow the milter to load the configuration file and thus be able to access the DB --- roles/pagure/frontend/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/pagure/frontend/tasks/main.yml b/roles/pagure/frontend/tasks/main.yml index 4ed0b65bd2..98e73e1c70 100644 --- a/roles/pagure/frontend/tasks/main.yml +++ b/roles/pagure/frontend/tasks/main.yml @@ -188,10 +188,10 @@ - name: Install all the configuration files of pagure template: src={{ item.file }} dest={{ item.location }}/{{ item.file }} - owner={{ item.user }} group={{ item.user }} mode=0600 + owner={{ item.user }} group={{ item.group }} mode={{ item.mode }} with_items: - - { file: pagure.cfg, location: /etc/pagure, user: git } - - { file: pagure.conf, location: /etc/httpd/conf.d, user: apache } + - { file: pagure.cfg, location: /etc/pagure, user: git, group: postfix, mode=640 } + - { file: pagure.conf, location: /etc/httpd/conf.d, user: apache, group: apache, mode=600 } tags: - config - web