From 0d1d2aace551532af86acbdfe277f8412503cab4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 01 2021 15:25:10 +0000 Subject: distgit/pagure: create the git user and add it to the packager group Signed-off-by: Pierre-Yves Chibon --- diff --git a/roles/distgit/pagure/tasks/main.yml b/roles/distgit/pagure/tasks/main.yml index 7edbfe5..9e94604 100644 --- a/roles/distgit/pagure/tasks/main.yml +++ b/roles/distgit/pagure/tasks/main.yml @@ -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