lab-ansible/roles/apps/tasks/extra_tasks/ipfs.yml

27 lines
647 B
YAML

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