Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
547 B

---
- name: Create directory structure
file:
path: "{{ gitea_root_dir }}/{{ item.dir }}"
state: directory
owner: "{{ item.owner | default('gitea') }}"
group: "{{ item.group | default('gitea') }}"
mode: "{{ item.mode | default('750') }}"
loop:
- dir: data
- dir: data/repositories
- dir: custom
- dir: public
- dir: etc
- dir: tmp
- dir: bin
- dir: meta
owner: root
group: root
mode: 700
- dir: db_dumps
owner: root
group: root
mode: 700
tags: gitea