1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

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:
Jens Timmerman 2020-08-16 01:33:06 +02:00 committed by Thomas Maurice
parent 56d9e08c64
commit d517cd1e64

View file

@ -29,6 +29,7 @@
path: "{{ item }}"
state: directory
owner: "{{ gitea_user }}"
recurse: True
with_items:
- "/etc/gitea"
- "{{ gitea_home }}"
@ -36,6 +37,8 @@
- "{{ gitea_home }}/custom"
- "{{ gitea_home }}/custom/https"
- "{{ gitea_home }}/custom/mailer"
- "{{ gitea_home }}/indexers"
- "{{ gitea_home }}/logs"
- include: install_systemd.yml
when: ansible_service_mgr == "systemd"