22 lines
507 B
YAML
22 lines
507 B
YAML
# vim: ft=yaml.ansible
|
|
# code: language=ansible
|
|
---
|
|
- name: Create subfolders for IPFS data
|
|
ansible.builtin.file:
|
|
name: "{{ dir }}"
|
|
owner: root
|
|
mode: u=rwx,g=rx,o=rx
|
|
state: directory
|
|
loop:
|
|
- "{{ apps_vars.ipfs.volume }}/data"
|
|
- "{{ apps_vars.ipfs.volume }}/staging"
|
|
loop_control:
|
|
loop_var: dir
|
|
|
|
- name: Copy ipfs-config.sh
|
|
ansible.builtin.copy:
|
|
src: ipfs/ipfs-config.sh
|
|
dest: "{{ apps_vars.ipfs.volume }}/ipfs-config.sh"
|
|
owner: root
|
|
mode: u=rwx,g=rx,o=rx
|