ansible-ffrgb/roles/mesh_wg/tasks/main.yml

26 lines
609 B
YAML
Raw Normal View History

---
- 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
2023-01-06 23:00:22 +01:00
apt: deb=http://moepman.eu/tmp/wgskex_0.3.2_amd64.deb
- name: Install ping endpoint
copy: src=ping dest=/var/www/html/ping