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

22 lines
516 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
---
- name: Create subfolders for IPFS data
2023-10-28 23:00:05 +00:00
ansible.builtin.file:
name: "{{ dir }}"
owner: root
mode: u=rwx,g=rx,o=rx
state: directory
loop:
2023-11-05 17:27:49 +00:00
- "{{ apps_data_root }}/ipfs/data/data"
- "{{ apps_data_root }}/ipfs/data/staging"
2023-10-28 23:00:05 +00:00
loop_control:
loop_var: dir
- 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
mode: u=rwx,g=rx,o=rx