mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
19 lines
498 B
YAML
19 lines
498 B
YAML
|
---
|
||
|
- name: "Create config and data directory"
|
||
|
ansible.builtin.file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
owner: "{{ gitea_user }}"
|
||
|
group: "{{ gitea_group }}"
|
||
|
mode: 'u=rwX,g=rX,o='
|
||
|
with_items:
|
||
|
- "/etc/gitea"
|
||
|
- "{{ gitea_home }}"
|
||
|
- "{{ gitea_home }}/data"
|
||
|
- "{{ gitea_home }}/custom"
|
||
|
- "{{ gitea_home }}/custom/https"
|
||
|
- "{{ gitea_home }}/custom/mailer"
|
||
|
- "{{ gitea_home }}/indexers"
|
||
|
- "{{ gitea_home }}/log"
|
||
|
- "{{ gitea_repository_root }}"
|