lab-ansible/roles/apps/tasks/extra_tasks/ipfs.yml
2023-12-28 00:07:21 +01:00

22 lines
520 B
YAML

# vim: ft=yaml.ansible
# code: language=ansible
---
- name: Create subdirectories for IPFS data
ansible.builtin.file:
path: "{{ dir }}"
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:
src: ipfs/ipfs-config.sh
dest: "{{ apps_data_root }}/ipfs/data/ipfs-config.sh"
owner: root
mode: u=rwx,g=rx,o=rx