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

16 lines
391 B
YAML
Raw Normal View History

2023-07-15 19:48:50 +02: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