@ -16,16 +16,12 @@
with_items:
with_items:
- "04EE7237B7D453EC"
- "04EE7237B7D453EC"
- "648ACFD622F3D138"
- "648ACFD622F3D138"
tags:
- wg-install
- name : (Raspbian) Add Debian Buster Backports repository for WireGuard
- name : (Raspbian) Add Debian Buster Backports repository for WireGuard
apt_repository:
apt_repository:
repo : "deb http://deb.debian.org/debian buster-backports main"
repo : "deb http://deb.debian.org/debian buster-backports main"
state : present
state : present
update_cache : yes
update_cache : yes
tags:
- wg-install
- name : (Raspbian) Install latest kernel
- name : (Raspbian) Install latest kernel
apt:
apt:
@ -33,8 +29,6 @@
- "raspberrypi-kernel"
- "raspberrypi-kernel"
state : latest
state : latest
register : wireguard__register_kernel_update
register : wireguard__register_kernel_update
tags:
- wg-install
- name : (Raspbian) Reboot after kernel update (Ansible >= 2.8)
- name : (Raspbian) Reboot after kernel update (Ansible >= 2.8)
reboot:
reboot:
@ -42,8 +36,6 @@
when:
when:
- ansible_version.full is version('2.8.0', '>=')
- ansible_version.full is version('2.8.0', '>=')
- wireguard__register_kernel_update is changed
- wireguard__register_kernel_update is changed
tags:
- wg-install
- name : (Raspbian) Check if molly-guard is installed (Ansible < 2.8)
- name : (Raspbian) Check if molly-guard is installed (Ansible < 2.8)
stat:
stat:
@ -56,8 +48,6 @@
- ansible_version.full is version('2.8.0', '<')
- ansible_version.full is version('2.8.0', '<')
- wireguard__register_kernel_update is changed
- wireguard__register_kernel_update is changed
- not wireguard__register_molly_guard.stat.exists
- not wireguard__register_molly_guard.stat.exists
tags:
- wg-install
- name : (Raspbian) Reboot after kernel update (Ansible < 2.8, with molly-guard)
- name : (Raspbian) Reboot after kernel update (Ansible < 2.8, with molly-guard)
command : /lib/molly-guard/shutdown -r now
command : /lib/molly-guard/shutdown -r now
@ -68,8 +58,6 @@
- ansible_version.full is version('2.8.0', '<')
- ansible_version.full is version('2.8.0', '<')
- wireguard__register_kernel_update is changed
- wireguard__register_kernel_update is changed
- wireguard__register_molly_guard.stat.exists
- wireguard__register_molly_guard.stat.exists
tags:
- wg-install
- name : (Raspbian) Waiting for host to be available (Ansible < 2.8, with molly-guard)
- name : (Raspbian) Waiting for host to be available (Ansible < 2.8, with molly-guard)
wait_for_connection:
wait_for_connection:
@ -77,16 +65,12 @@
- ansible_version.full is version('2.8.0', '<')
- ansible_version.full is version('2.8.0', '<')
- wireguard__register_kernel_update is changed
- wireguard__register_kernel_update is changed
- wireguard__register_molly_guard.stat.exists
- wireguard__register_molly_guard.stat.exists
tags:
- wg-install
- name : (Raspbian) Install latest kernel headers to compile Wireguard with DKMS
- name : (Raspbian) Install latest kernel headers to compile Wireguard with DKMS
apt:
apt:
name:
name:
- "raspberrypi-kernel-headers"
- "raspberrypi-kernel-headers"
state : latest
state : latest
tags:
- wg-install
- name : (Raspbian) Install WireGuard packages
- name : (Raspbian) Install WireGuard packages
apt:
apt:
@ -94,5 +78,3 @@
- "wireguard-dkms"
- "wireguard-dkms"
- "wireguard-tools"
- "wireguard-tools"
state : present
state : present
tags:
- wg-install