From 15b53903e14a7c7ddbb086fc94c42d7d2916b4df Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 8 May 2021 23:34:34 +0200 Subject: enable zfs snapshotter for containerd --- roles/containerd/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/containerd/tasks') diff --git a/roles/containerd/tasks/main.yml b/roles/containerd/tasks/main.yml index a082e27b..10371243 100644 --- a/roles/containerd/tasks/main.yml +++ b/roles/containerd/tasks/main.yml @@ -6,6 +6,12 @@ include_role: name: "storage/{{ containerd_storage.type }}/volume" +- name: create child-dataset for zfs-snapshotter + when: "containerd_storage is defined and containerd_storage.type == 'zfs'" + zfs: + name: "{{ containerd_storage.pool }}/{{ containerd_storage.name }}/io.containerd.snapshotter.v1.zfs" + state: present + - name: prepare package provider when: containerd_pkg_provider != 'distro' include_role: -- cgit v1.2.3