forgejo/tasks/configure.yml

45 lines
926 B
YAML

---
- name: '[DIR] - Create bin dir'
file:
path: '{{ gitea_bindir }}'
state: directory
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
mode: '0750'
- name: '[DIR] - Create lib dir'
file:
path: '{{ gitea_lib_dir }}'
state: directory
mode: '0750'
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
- name: '[DIR] - Create lib dirs'
file:
path: "{{ gitea_lib_dir }}/{{ item }}"
state: directory
mode: '0750'
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
with_items:
- 'custom'
- 'data'
- 'log'
- name: '[DIR] - Create etc dir'
file:
path: /etc/gitea
state: directory
mode: '0770'
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"
- name: '[CONF] - Deploy gitea config'
template:
src: etc/gitea/app.ini.j2
dest: "{{ gitea_confdir }}"
owner: "{{ gitea_user }}"
group: "{{ gitea_group }}"