From d394c3cbe26652c0b046d701730237dedece5025 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sat, 6 Jan 2024 17:24:39 +0100 Subject: [PATCH] Fix directory permissions --- roles/apps/tasks/extra_tasks/ipfs.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/roles/apps/tasks/extra_tasks/ipfs.yml b/roles/apps/tasks/extra_tasks/ipfs.yml index 1becbe0..3738148 100644 --- a/roles/apps/tasks/extra_tasks/ipfs.yml +++ b/roles/apps/tasks/extra_tasks/ipfs.yml @@ -1,17 +1,20 @@ # vim: ft=yaml.ansible # code: language=ansible --- -- name: Create subdirectories for IPFS data +- name: Create subdirectory for IPFS data ansible.builtin.file: - path: "{{ dir }}" + path: "{{ apps_data_root }}/ipfs/data/data" + owner: '1000' + group: root + mode: u=rwx,g=rx,o=rx + state: directory + +- name: Create subdirectory for IPFS staging + ansible.builtin.file: + path: "{{ apps_data_root }}/ipfs/data/staging" owner: root mode: u=rwx,g=rx,o=rx state: directory - loop: - - "{{ apps_data_root }}/ipfs/data/data" - - "{{ apps_data_root }}/ipfs/data/staging" - loop_control: - loop_var: dir - name: Copy ipfs-config.sh ansible.builtin.copy: