From a13c742641f045afeab68f7adbaa9b22a588179a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 25 Sep 2018 22:07:39 +0200 Subject: [PATCH] Create a mirror user for the mirroring feature in pagure Signed-off-by: Pierre-Yves Chibon --- roles/pagure/frontend/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/pagure/frontend/tasks/main.yml b/roles/pagure/frontend/tasks/main.yml index 59b925b782..39c260a9b8 100644 --- a/roles/pagure/frontend/tasks/main.yml +++ b/roles/pagure/frontend/tasks/main.yml @@ -142,6 +142,18 @@ - gitolite - pagure +# Set things up for the mirroring feature + +- name: create the `mirror` user + user: + name: mirror + group: mirror + shell: /bin/nologin + home: /srv/mirror + when: env == 'pagure-staging' + tags: + - pagure + - mirror # Set-up postfix and the milter for postfix