create custom,data,log directories for gitea

This commit is contained in:
Ibrahim Mkusa 2024-09-21 21:47:57 -04:00
parent ad94498ce0
commit b7e69eee1f

View File

@ -1,5 +1,5 @@
--- ---
- name: This playbook installs and setups postgresql - name: This playbook installs and setups gitea along with postgresql
hosts: aws hosts: aws
become: true become: true
vars_files: vars_files:
@ -106,7 +106,19 @@
comment: "Gitea repo manager" comment: "Gitea repo manager"
state: present state: present
- name: create gitea core directories
ansible.builtin.file:
path: /var/lib/gitea/{{item}}
state: directory
recurse: yes
owner: git
group: git
mode: '0750'
loop:
- ""
- custom
- data
- log