diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-05-11 03:47:35 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-05-25 00:04:27 +0200 |
commit | 22625ac4e802a2317d0ad723a8d7f292ecf10fbe (patch) | |
tree | 2df599e52dac83ab187bfc8bedabd1077ec47e6b /roles/zfs/base/tasks/Debian.yml | |
parent | remove nextcloud test instance (diff) |
add host sk-tomnext
Diffstat (limited to 'roles/zfs/base/tasks/Debian.yml')
-rw-r--r-- | roles/zfs/base/tasks/Debian.yml | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/roles/zfs/base/tasks/Debian.yml b/roles/zfs/base/tasks/Debian.yml index b9fdda95..e13c03f5 100644 --- a/roles/zfs/base/tasks/Debian.yml +++ b/roles/zfs/base/tasks/Debian.yml @@ -3,9 +3,28 @@ import_role: name: prepare-dkms -## TODO: make sure contrib repo is enabled +- name: check if contrib apt component is enabled + assert: + msg: "Debian zfs packages are in contrib - please enable it using 'apt_repo_components'" + that: + - apt_repo_components is defined + - "'contrib' in apt_repo_components" -- name: install zfs-dkms +- name: install zfs-dkms (buster) + when: (ansible_distribution_major_version | int) == 10 + block: + - name: add backports repo + include_role: + name: apt-repo/backports + + - name: install zfs-dkms from backports + apt: + name: zfs-dkms + default_release: buster-backports + state: present + +- name: install zfs-dkms (bullseye and beyond) + when: (ansible_distribution_major_version | int) > 10 apt: name: zfs-dkms state: present |