3
0
Fork 0

update defaults and README

This commit is contained in:
juju4 2020-02-16 09:43:32 -05:00
parent 3c2d300bea
commit c0bcb23a93
2 changed files with 21 additions and 0 deletions

View File

@ -257,6 +257,19 @@ Endpoint = server.at.home.p.domain.tld:51820
The other WireGuard config files (`wg0.conf` by default) looks similar but of course `[Interface]` includes the config of that specific host and the `[Peer]` entries lists the config of the other hosts.
Following variable allows to configure unmanaged hosts which are not configured by Ansible, typically smartphones and tablets.
In this case, private key and client configuration are generated on wireguard hub.
They can be shared through qrcode.
```
wireguard_unmanaged_hosts:
- host: 'test'
allowed_ips: 10.200.10.10/32
dns: 10.200.10.1
- host: 'test2'
allowed_ips: 10.200.10.11/32
dns: 10.200.10.1
```
Example Playbook
----------------

View File

@ -7,3 +7,11 @@ wireguard_port: "51820"
# The default interface name that wireguard should use if not specified otherwise.
wireguard_interface: "wg0"
#wireguard_unmanaged_hosts:
# - host: 'test'
# allowed_ips: 10.200.10.10/32
# dns: 10.200.10.1
# - host: 'test2'
# allowed_ips: 10.200.10.11/32
# dns: 10.200.10.1