ansible-edda/playbooks/roles/music/datasets/tasks/main.yml

40 lines
1.0 KiB
YAML
Raw Normal View History

2023-02-19 21:12:16 +01:00
---
- 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 collection dataset"
2023-02-19 21:12:16 +01:00
community.general.zfs:
name: "{{ music_user_data_collection_dataset }}"
2023-02-19 21:12:16 +01:00
state: "present"
2023-02-22 21:25:21 +01:00
2023-03-01 20:14:12 +01:00
- name: "create music archive dataset"
community.general.zfs:
name: "{{ music_user_data_archive_dataset }}"
state: "present"
2023-02-22 21:25:21 +01:00
- name: "create backup data dataset"
community.general.zfs:
name: "{{ system_backups_snapshots_data_dataset }}/{{ music_user_name }}"
state: "present"
extra_zfs_properties:
canmount: "off"