670 B
670 B
WireGuard
Installs WireGuard and manages wg-quick tunnels from wireguard_tunnels
(see defaults/main.yml for the full schema).
- Linux — server (
server_mode: true) or client. Server mode enables masquerade + UFW rules; tunnels are managed bywg-quick@<iface>.service. - macOS (Darwin) — client only, via Homebrew
wireguard-tools+wireguard-go. No systemd/UFW/sysctl: the config is rendered to{{ wireguard_config_base_path }}(/etc/wireguard) and brought up withwg-quick.
Verify
sudo wg show # Linux
sudo /opt/homebrew/bin/wg show # macOS (or add /opt/homebrew/bin to sudo secure_path)