Make command clearer, include config, and give the git user access to his damn config file
This commit is contained in:
parent
503a65200b
commit
661cad5c39
@ -85,8 +85,21 @@
|
|||||||
src: "app.ini"
|
src: "app.ini"
|
||||||
dest: "/etc/gitea/app.ini"
|
dest: "/etc/gitea/app.ini"
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
|
owner: "root"
|
||||||
|
group: "git"
|
||||||
- name: Create default user
|
- 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
|
when: not p.stat.exists
|
||||||
- name: Template out service
|
- name: Template out service
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user