baikal: fix subvolumes
parent
35de046d69
commit
6cf07db3e3
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
- name: Ensure data directory is present
|
- name: Ensure data subvolume is present
|
||||||
|
community.general.btrfs_subvolume:
|
||||||
|
name: '/baikal'
|
||||||
|
|
||||||
|
- name: Ensure data directories are present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: '/mnt/data1/baikal'
|
path: '/mnt/data1/baikal/{{ item }}'
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
owner: 'root'
|
owner: 'root'
|
||||||
group: 'root'
|
group: 'root'
|
||||||
|
|
||||||
- name: Ensure data subvolumes are present
|
|
||||||
community.general.btrfs_subvolume:
|
|
||||||
name: '/baikal/{{ item }}'
|
|
||||||
loop:
|
loop:
|
||||||
- 'Specific'
|
- 'Specific'
|
||||||
- 'config'
|
- 'config'
|
||||||
|
|
Loading…
Reference in New Issue