diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-19 00:02:24 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-19 00:02:24 +0200 |
commit | 000c8b93457e9f9d88062626565ee5c25b965332 (patch) | |
tree | af613b0ca52f356d37f3e2054fe752e4848755b7 /roles/wireguard | |
parent | kubernetes: fix kubeguard cleanup (diff) |
apt-repo/spreadspace is needed when installing wireguard on older distros
Diffstat (limited to 'roles/wireguard')
-rw-r--r-- | roles/wireguard/base/tasks/main.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/wireguard/base/tasks/main.yml b/roles/wireguard/base/tasks/main.yml index 6b7cea23..4d60150d 100644 --- a/roles/wireguard/base/tasks/main.yml +++ b/roles/wireguard/base/tasks/main.yml @@ -1,4 +1,9 @@ --- +- name: enable spreadspace repo + when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) < 11) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) < 20) + import_role: + name: apt-repo/spreadspace + - name: install dkms import_role: name: prepare-dkms |