2020-11-23 19:44:52 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Enable backports
|
|
|
|
apt_repository: repo='deb http://deb.debian.org/debian buster-backports main'
|
|
|
|
|
|
|
|
- name: Install kernel headers
|
|
|
|
apt: name=linux-headers-amd64
|
|
|
|
|
|
|
|
- name: Install wireguard from backports
|
2021-07-23 16:32:46 +02:00
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- wireguard-dkms
|
|
|
|
- wireguard-tools
|
|
|
|
default_release: buster-backports
|
|
|
|
|
|
|
|
- name: Create wireguard config directory
|
|
|
|
file:
|
|
|
|
path: /etc/wireguard
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|
2020-11-23 19:44:52 +01:00
|
|
|
|
|
|
|
- name: Configure wireguard options
|
2021-07-23 16:32:46 +02:00
|
|
|
template: src=wg.conf.j2 dest=/etc/wireguard/wg-{{ site_code }}.conf mode=0600
|
2020-11-23 19:44:52 +01:00
|
|
|
notify: Reload interfaces
|
|
|
|
|
|
|
|
- name: Configure mesh interfaces
|
|
|
|
template: src=mesh_wg.conf.j2 dest=/etc/network/interfaces.d/mesh_wg.conf
|
|
|
|
notify: Reload interfaces
|
2021-07-23 16:32:46 +02:00
|
|
|
|
|
|
|
- name: Install wgskex
|
|
|
|
apt: deb=http://moepman.eu/tmp/wgskex_0.1.0_amd64.deb
|
2021-07-25 17:30:58 +02:00
|
|
|
|
|
|
|
- name: Install ping endpoint
|
|
|
|
copy: src=ping dest=/var/www/html/ping
|