You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-homelab/roles/sprat.mergerfs/molecule/default/prepare.yml

25 lines
482 B
YAML

- name: Prepare
hosts: all
tasks:
- name: Create directories
become: true
file:
path: '{{ item }}'
state: directory
loop:
- /mnt/data1
- /mnt/data2
- name: Create data files
become: true
copy:
content: "{{ item.content }}\n"
dest: '{{ item.path }}'
loop:
- path: /mnt/data1/file1.txt
content: file1
- path: /mnt/data2/file2.txt
content: file2
- path: /mnt/data2/file3.txt
content: file3