also create inders and logs directory as gitea
Recursively set the gitea user as owner of all it's directories (and create /indexers and /logs directories. This is needed if one tried to start gitea as root before.
This commit is contained in:
parent
56d9e08c64
commit
d517cd1e64
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
|
recurse: True
|
||||||
with_items:
|
with_items:
|
||||||
- "/etc/gitea"
|
- "/etc/gitea"
|
||||||
- "{{ gitea_home }}"
|
- "{{ gitea_home }}"
|
||||||
|
@ -36,6 +37,8 @@
|
||||||
- "{{ gitea_home }}/custom"
|
- "{{ gitea_home }}/custom"
|
||||||
- "{{ gitea_home }}/custom/https"
|
- "{{ gitea_home }}/custom/https"
|
||||||
- "{{ gitea_home }}/custom/mailer"
|
- "{{ gitea_home }}/custom/mailer"
|
||||||
|
- "{{ gitea_home }}/indexers"
|
||||||
|
- "{{ gitea_home }}/logs"
|
||||||
|
|
||||||
- include: install_systemd.yml
|
- include: install_systemd.yml
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
|
|
Loading…
Reference in a new issue