A simple ansible playbook to install Wireguard VPN / sercure overlay network.
- Add support for OS other then Debian
- Use python-netaddr to generate private Ips
- Ansible 2.4 (or newer) installed on the machine that will run Ansible commands.
- Jinja
You must configure the inventory file in inventory/hosts.ini
git clone https://github.com/N0Cloud/ansible-wireguard.git
cd ansible-wireguard
# Edit inventory/hosts.ini
ansible-playbook -i inventory/hosts.ini wireguard.yml
You can get the status of Wireguard by running the following command on every hosts
wg show
or with ansible
ansible -i inventory/hosts.ini -a "wg show" wireguard
For more information go to Wireguard documentation.