From 661cad5c39978397c0d53b2faeaf17c3779d490c Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 30 Apr 2020 05:38:55 -0500 Subject: [PATCH] Make command clearer, include config, and give the git user access to his damn config file --- roles/gitea/tasks/main.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/roles/gitea/tasks/main.yml b/roles/gitea/tasks/main.yml index 71ea527..9c440c3 100644 --- a/roles/gitea/tasks/main.yml +++ b/roles/gitea/tasks/main.yml @@ -85,8 +85,21 @@ src: "app.ini" dest: "/etc/gitea/app.ini" mode: "0640" + owner: "root" + group: "git" - name: Create default user - command: /usr/local/bin/gitea admin create-user --username {{ gitea_admin_username }} --password {{ gitea_admin_password }} --email {{ gitea_admin_email }} + command: + - /usr/local/bin/gitea + - admin + - create-user + - --username + - {{ gitea_admin_username }} + - --password + - {{ gitea_admin_password }} + - --email + - {{ gitea_admin_email }} + - --config + - /etc/gitea/app.ini when: not p.stat.exists - name: Template out service template: