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:
parent
ac2c21ca4a
commit
0d1d2aace5
1 changed files with 13 additions and 0 deletions
|
@ -76,6 +76,19 @@
|
||||||
tags:
|
tags:
|
||||||
- pagure
|
- 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
|
- name: create the /var/log/pagure folder where to store the logs
|
||||||
file: state=directory
|
file: state=directory
|
||||||
path=/var/log/pagure
|
path=/var/log/pagure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue