Make command clearer, include config, and give the git user access to his damn config file

This commit is contained in:
Salt 2020-04-30 05:38:55 -05:00
parent 503a65200b
commit 661cad5c39

View File

@ -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: