Installs WireGuard.
None.
Defines the WireGuard interfaces to configure.
wireguard_interfaces:
wg0:
address:
mtu:
post_up:
- wg set %i private-key /etc/wireguard/private.key # Recommended. This key is generated on install of the role.
dns: # Optional
- 1.1.1.1 # DNS server 1
- 2.2.2.2 # DNS server 2
- vpn # Search domain
peers:
- name: # Optional
public_key:
allowed_ips:
endpoint: # Optional
keep_alive: # Optional
enabled: true # Should this interface start at boot?
state: started # What state should the interface be in?
None.
- hosts: server
roles:
- joenyland.wireguard
MIT
⌨️ with ❤️ by Joe Nyland