From b7e69eee1f3d2fd4787f282412e67f2c3c71ce65 Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sat, 21 Sep 2024 21:47:57 -0400 Subject: [PATCH] create custom,data,log directories for gitea --- playbooks/setup_database_gitea.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/playbooks/setup_database_gitea.yml b/playbooks/setup_database_gitea.yml index 117d9bc..ba5bf18 100644 --- a/playbooks/setup_database_gitea.yml +++ b/playbooks/setup_database_gitea.yml @@ -1,5 +1,5 @@ --- -- name: This playbook installs and setups postgresql +- name: This playbook installs and setups gitea along with postgresql hosts: aws become: true vars_files: @@ -106,7 +106,19 @@ comment: "Gitea repo manager" 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