summaryrefslogtreecommitdiff
path: root/roles/containerd/tasks/main.yml
blob: daf613ae1c2fe4037b02e52809d0923cb044ae67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- name: check for supported platform
  when: ansible_distribution != "Ubuntu"
  fail:
    msg: "currenty this only works with ubuntu"

- name: prepare /var/lib/containerd as LVM
  when: containerd_lvm is defined
  import_tasks: lvm.yml

- name: prepare /var/lib/containerd as ZFS dataset
  when: containerd_zfs is defined
  import_tasks: zfs.yml

- name: install containerd
  apt:
    name: containerd
    state: present
    force: yes