Forget the git group, use setfacl

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-09-25 22:25:58 +02:00
parent 09a573d14d
commit 4e0108d96b

View file

@ -159,8 +159,6 @@
group: paguremirroring
shell: /bin/nologin
home: /srv/mirror
groups: git
append: yes
when: env == 'pagure-staging'
tags:
- pagure
@ -321,6 +319,13 @@
notify:
- restart apache
- name: let paguremirroring read the pagure config
command: /usr/bin/setfacl -dm user:paguremirroring:rx /etc/pagure/pagure.cfg
when: env == 'pagure-staging'
tags:
- pagure
- mirror
- name: Add default facl so apache can read git repos
acl: default=yes etype=user entity=apache permissions="rx" name=/srv/git state=present
register: acl_updates