summaryrefslogtreecommitdiff
path: root/roles/wireguard/base
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-01-23 22:17:02 +0100
committerChristian Pointner <equinox@spreadspace.org>2021-01-23 22:17:02 +0100
commitaefa7a4f57f91ed62ca166ecf5fdfc2eacc04f6a (patch)
treef7bb813720bc5198cbd2c172ae6136f2927eab3e /roles/wireguard/base
parentadd etherwake and wakeonlan to ch-equinox-(ws|t450s) (diff)
move wireguard to network sub-dir
Diffstat (limited to 'roles/wireguard/base')
-rw-r--r--roles/wireguard/base/tasks/main.yml33
1 files changed, 0 insertions, 33 deletions
diff --git a/roles/wireguard/base/tasks/main.yml b/roles/wireguard/base/tasks/main.yml
deleted file mode 100644
index 4d60150d..00000000
--- a/roles/wireguard/base/tasks/main.yml
+++ /dev/null
@@ -1,33 +0,0 @@
----
-- 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
-
-- name: install wireguard packages
- apt:
- name:
- - wireguard-dkms
- - wireguard-tools
- state: present
-
-- name: check if module is available for the currently running kernel
- command: modprobe --dry-run wireguard
- check_mode: no
- register: wireguard_module_available
- failed_when: false
- changed_when: false
-
-- name: rebuild wireguard module
- when: wireguard_module_available.rc != 0
- command: dpkg-reconfigure wireguard-dkms
-
-- name: check again if module is available for the currently running kernel
- when: wireguard_module_available.rc != 0
- command: modprobe --dry-run wireguard
- check_mode: no
- changed_when: false