diff --git a/README.md b/README.md index 2399a4e..7a8b070 100644 --- a/README.md +++ b/README.md @@ -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 ---------------- diff --git a/defaults/main.yml b/defaults/main.yml index 55db08b..13e5cff 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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