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: