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