ansible-edda/playbooks/tasks/services/deploy/service/01-zfs-datasets.d/database.yml

22 lines
673 B
YAML
Raw Normal View History

2022-10-26 21:43:08 +02:00
- name: Create data dataset for user {{ service_user_name }}
2022-10-24 00:45:52 +02:00
zfs:
name: rpool/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}
state: present
2022-10-26 21:43:08 +02:00
extra_zfs_properties:
canmount: "off"
- name: Create wal dataset for user {{ service_user_name }}
zfs:
name: rpool/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}/wal
state: present
2022-10-24 00:45:52 +02:00
extra_zfs_properties:
recordsize: "8K"
- name: Create data dataset for user {{ service_user_name }}
zfs:
2022-10-26 21:43:08 +02:00
name: rpool/var/lib/{{ ansible_hostname }}/data/{{ service_user_name }}/data
2022-10-24 00:45:52 +02:00
state: present
extra_zfs_properties:
recordsize: "8K"
logbias: "throughput"