Fix directory permissions

This commit is contained in:
Sam A. 2024-01-06 17:24:39 +01:00
parent 6592020863
commit d394c3cbe2
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -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: