ansible-edda/playbooks/tasks/services/a-common/01-zfs-datasets.yml

20 lines
446 B
YAML
Raw Normal View History

2022-10-14 21:32:51 +02:00
- name: Create backup dataset
zfs:
name: hpool/backup
state: present
extra_zfs_properties:
canmount: "off"
"com.sun:auto-snapshot": "false"
- name: Create service backup dataset
zfs:
name: hpool/backup/{{ ansible_hostname }}
state: present
- name: Create service data backup dataset
zfs:
name: hpool/backup/{{ ansible_hostname }}/data
state: present
extra_zfs_properties:
canmount: "off"