22 lines
384 B
Markdown
22 lines
384 B
Markdown
# WireGuard ansible role
|
|
|
|
Configure wireguard
|
|
|
|
## Usega
|
|
|
|
Configure the role
|
|
|
|
```yml
|
|
wireguard_interfaces:
|
|
wg01:
|
|
interface:
|
|
Address: 10.0.0.1
|
|
ListenPort: 51820
|
|
PrivateKey: "{{ wireguard_private_key }}"
|
|
peers:
|
|
- AllowedIPs: 10.0.0.0/24
|
|
PublicKey: "{{ wireguard_public_key }}"
|
|
Endpoint: 1.1.1.1:51820
|
|
PersistentKeepalive: 25
|
|
```
|