distgit/pagure: create the git user and add it to the packager group

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-03-01 16:25:10 +01:00
parent ac2c21ca4a
commit 0d1d2aace5

View file

@ -76,6 +76,19 @@
tags:
- pagure
- name: Create the "git" user
command: useradd --create-home --home-dir=/srv/git/ git
creates=/srv/git/
when: env == 'staging'
tags:
- pagure
- name: Add the git user to the packager group
user: name=git group=packager append=yes
when: env == 'staging'
tags:
- pagure
- name: create the /var/log/pagure folder where to store the logs
file: state=directory
path=/var/log/pagure