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

27 lines
647 B
YAML
Raw Normal View History

2023-10-28 23:00:05 +00:00
# vim: ft=yaml.ansible
2023-10-29 19:46:52 +00:00
# code: language=ansible
2023-10-28 23:00:05 +00:00
---
2024-01-06 16:24:39 +00:00
- name: Create subdirectory for IPFS data
2023-10-28 23:00:05 +00:00
ansible.builtin.file:
2024-01-06 16:24:39 +00:00
path: "{{ apps_data_root }}/ipfs/data/data"
owner: '1000'
2024-01-30 18:15:51 +00:00
group: '1000'
2024-01-06 16:24:39 +00:00
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"
2023-10-28 23:00:05 +00:00
owner: root
2024-01-30 18:15:51 +00:00
group: root
2023-10-28 23:00:05 +00:00
mode: u=rwx,g=rx,o=rx
state: directory
- name: Copy ipfs-config.sh
ansible.builtin.copy:
src: ipfs/ipfs-config.sh
2023-11-05 17:27:49 +00:00
dest: "{{ apps_data_root }}/ipfs/data/ipfs-config.sh"
2023-10-28 23:00:05 +00:00
owner: root
2024-01-30 18:15:51 +00:00
group: root
2023-10-28 23:00:05 +00:00
mode: u=rwx,g=rx,o=rx