2020-11-23 19:44:52 +01:00
|
|
|
---
|
|
|
|
|
2021-09-27 18:14:18 +02:00
|
|
|
- name: Install wireguard
|
|
|
|
apt: name=wireguard-tools
|
2021-07-23 16:32:46 +02:00
|
|
|
|
|
|
|
- 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
|
2023-12-14 11:53:26 +01:00
|
|
|
apt: deb=http://moepman.eu/tmp/wgskex_0.3.3_amd64.deb
|
2023-01-06 23:00:22 +01:00
|
|
|
|
2021-07-25 17:30:58 +02:00
|
|
|
|
|
|
|
- name: Install ping endpoint
|
|
|
|
copy: src=ping dest=/var/www/html/ping
|