forked from FF-RGB/ansible
25 lines
619 B
YAML
25 lines
619 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.1-1-g8f8ef54_amd64.deb
|
|
|
|
- name: Install ping endpoint
|
|
copy: src=ping dest=/var/www/html/ping
|