From 27cd98274c1fb09a160685c57efcb8facb9d5418 Mon Sep 17 00:00:00 2001 From: NaeiKinDus Date: Mon, 24 Mar 2025 00:00:00 +0000 Subject: [PATCH] feat(common): create common default directories --- .../infrastructure/roles/common/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible_collections/nullified/infrastructure/roles/common/tasks/main.yml b/ansible_collections/nullified/infrastructure/roles/common/tasks/main.yml index 860ac45..20eee26 100644 --- a/ansible_collections/nullified/infrastructure/roles/common/tasks/main.yml +++ b/ansible_collections/nullified/infrastructure/roles/common/tasks/main.yml @@ -126,6 +126,18 @@ cache_valid_time: 3600 pkg: "{{ common_apt_packages }}" +- name: setup default directories + become: true + ansible.builtin.file: + path: '{{ item.path }}' + owner: '{{ item.owner | default("root", true) }}' + group: '{{ item.group | default("root", true) }}' + mode: '{{ item.mode | default("u=rwX,g=rX,o=", true) }}' + state: directory + loop: + - path: /srv/git + mode: "u=rwx,g=rx,o=rx" + - include_tasks: home_setup.yml - include_tasks: shell_customization.yml