28 lines
690 B
YAML
28 lines
690 B
YAML
---
|
|
- name: "create home dataset"
|
|
community.general.zfs:
|
|
name: "{{ music_user_home_dataset }}"
|
|
state: "present"
|
|
register: music_datasets_user_zfs_home
|
|
|
|
- name: "populate home dataset with skeleton"
|
|
ansible.builtin.copy:
|
|
src: "/etc/skel/"
|
|
dest: "{{ music_user_home_directory }}"
|
|
mode: "preserve"
|
|
remote_src: true
|
|
when:
|
|
music_datasets_user_zfs_home.changed
|
|
|
|
- name: "create data dataset"
|
|
community.general.zfs:
|
|
name: "{{ music_user_data_dataset }}"
|
|
state: "present"
|
|
extra_zfs_properties:
|
|
canmount: "off"
|
|
|
|
- name: "create music volume dataset"
|
|
community.general.zfs:
|
|
name: "{{ music_user_data_dataset }}/flac"
|
|
state: "present"
|