forked from FF-RGB/ansible
26 lines
609 B
YAML
26 lines
609 B
YAML
---
|
|
|
|
- name: Install wireguard
|
|
apt: name=wireguard-tools
|
|
|
|
- name: Create wireguard config directory
|
|
file:
|
|
path: /etc/wireguard
|
|
state: directory
|
|
mode: 0700
|
|
|
|
- name: Configure wireguard options
|
|
template: src=wg.conf.j2 dest=/etc/wireguard/wg-{{ site_code }}.conf mode=0600
|
|
notify: Reload interfaces
|
|
|
|
- name: Configure mesh interfaces
|
|
template: src=mesh_wg.conf.j2 dest=/etc/network/interfaces.d/mesh_wg.conf
|
|
notify: Reload interfaces
|
|
|
|
- name: Install wgskex
|
|
apt: deb=http://moepman.eu/tmp/wgskex_0.3.3_amd64.deb
|
|
|
|
|
|
- name: Install ping endpoint
|
|
copy: src=ping dest=/var/www/html/ping
|