diff options
Diffstat (limited to 'roles/docker/tasks/zfs.yml')
-rw-r--r-- | roles/docker/tasks/zfs.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/docker/tasks/zfs.yml b/roles/docker/tasks/zfs.yml new file mode 100644 index 00000000..3301e310 --- /dev/null +++ b/roles/docker/tasks/zfs.yml @@ -0,0 +1,15 @@ +--- +- name: create zfs dataset + zfs: + name: "{{ docker_zfs.pool }}/{{ docker_zfs.name }}" + state: present + extra_zfs_properties: + quota: "{{ docker_zfs.size }}" + +- name: bind mount filesytem + mount: + src: "{{ zfs_zpools[docker_zfs.pool].mountpoint }}/{{ docker_zfs.name }}" + path: /var/lib/docker + fstype: none + opts: bind,x-systemd.automount,nofail + state: mounted |