summaryrefslogtreecommitdiff
path: root/roles/docker/tasks/zfs.yml
blob: 3301e31084a9c98c78bbfb7738075f529568bd57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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