From 0d1d2aace551532af86acbdfe277f8412503cab4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 1 Mar 2021 16:25:10 +0100 Subject: [PATCH] distgit/pagure: create the git user and add it to the packager group Signed-off-by: Pierre-Yves Chibon --- roles/distgit/pagure/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/distgit/pagure/tasks/main.yml b/roles/distgit/pagure/tasks/main.yml index 7edbfe530a..9e94604434 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