summaryrefslogtreecommitdiff
path: root/roles/docker/engine/tasks/zfs.yml
blob: e8289c7d7d8a0251c1fd56c43f3a8714bd954730 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: create zfs dataset
  zfs:
    name: "{{ docker_zfs.pool }}/{{ docker_zfs.name }}"
    state: present
    extra_zfs_properties: "{{ docker_zfs.properties | default(omit) }}"

- name: bind mount filesytem
  mount:
    src: "{{ zfs_pools[docker_zfs.pool].mountpoint }}/{{ docker_zfs.name }}"
    path: /var/lib/docker
    fstype: none
    opts: bind,x-systemd.automount,nofail
    state: mounted