blob: f13f69500b86df062f0f912c4792fe7db9544a5f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---
- name: create zfs dataset
zfs:
name: "{{ zfs_volume.pool }}/{{ zfs_volume.name }}"
state: present
extra_zfs_properties: "{{ zfs_volume.properties | default(omit) }}"
- name: bind mount filesystem
vars:
zfs_mountpoint: "{{ (zfs_pools[zfs_volume.pool].mountpoint, zfs_volume.name) | path_join }}"
when: zfs_volume.dest != zfs_mountpoint
mount:
src: "{{ zfs_mountpoint }}"
path: "{{ zfs_volume.dest }}"
fstype: none
opts: bind,x-systemd.automount,nofail
state: mounted
|