Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/botto/ansible-wireguard
Ansible role to deploy a wireguard server
https://github.com/botto/ansible-wireguard
ansible ansible-role vpn wireguard
Last synced: about 3 hours ago
JSON representation
Ansible role to deploy a wireguard server
- Host: GitHub
- URL: https://github.com/botto/ansible-wireguard
- Owner: botto
- Created: 2017-06-27T12:38:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-23T09:15:08.000Z (over 3 years ago)
- Last Synced: 2024-04-15T02:59:50.356Z (7 months ago)
- Topics: ansible, ansible-role, vpn, wireguard
- Language: Jinja
- Size: 7.81 KB
- Stars: 10
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wireguard Ansible
Simple role to set up a wireguard server
## Role Variables
wireguard_root_ip: 10.212.122.1 # VPN address of server
wireguard_clients: [] # List of clients to add to wireguard config
wireguard_private_key: "..." # Undefined by default, the role will generate a key on each run## Example Playbook
- hosts: webservers
vars:
wireguard_private_key: "..."
wireguard_clients:
- { public_key: 'fMVHmYgYIl8w6dPnbspiNcXjxNcsYmNUL5hBHbkzEng=', allowed_ip: '10.212.122.10/32', preshared_key: 'pEoSSHnrbk94CJepW8+GGGUThgiJwJHdUszPN/30Xks=' }
- { public_key: '...', allowed_ip: '10.212.122.20/32', preshared_key: '....' }
roles:
- { role: botto.wireguard }## TODO
- [ ] Inspect existing server config and extract private key
- [ ] Make sure multiple wg instances can be set up i.e.: wg0-server and wg1-server and so on