Ansible role to install and configure wireguard VPN.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Minimum Ansible version:
2.10
Interface to define
wireguard_interface: wg0IP address of the wireguard node
wireguard_ip:Netmask of the wireguard node
wireguard_netmask: 32List of packages to install
wireguard_packages:
- bridge-utils
- linux-headers-generic
- wireguard-tools
- wireguard
- "{{ 'wireguard-dkms' if ansible_distribution_version is version('24.04', '<')
else omit }}"List of peers to connect to
wireguard_peers: []Port to bind to
wireguard_port: 51820Private encryption key
wireguard_private:Public encryption key
wireguard_public:wireguard
- None
Apache-2.0