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

33 lines
797 B
YAML
Raw Normal View History

---
- name: "Create config and data directory"
2021-03-22 21:28:51 +01:00
become: true
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
2024-04-07 21:48:40 +02:00
mode: "u=rwX,g=rX"
2024-03-03 11:46:42 +01:00
recurse: true
2023-10-29 16:11:12 +01:00
loop:
- "{{ gitea_user_home }}"
- "{{ gitea_home }}"
- "{{ gitea_home }}/data"
2021-06-03 17:59:14 +02:00
- "{{ gitea_custom }}"
- "{{ gitea_custom }}/https"
- "{{ gitea_custom }}/mailer"
- "{{ gitea_home }}/indexers"
- "{{ gitea_home }}/log"
- "{{ gitea_repository_root }}"
2024-04-07 21:48:40 +02:00
- name: "Create config and data directory"
become: true
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
mode: "u=rwX,g=rX,o="
recurse: true
loop:
- "{{ gitea_configuration_path }}"