diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-11-13 21:27:01 +0100 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-11-13 22:33:47 +0100 |
| commit | d557007188bcde5b8863049047c023dae0f91e79 (patch) | |
| tree | 543763718010aa433346f0ead57602a70a88c813 /host_vars | |
| parent | 40123ac06a2574d1419dc47cb920a8acba416987 (diff) | |
Add mechanism to clean up wireguard configurations
When a wireguard configuration gets removed from the group/host
variables, the role now removes them and make sure only the files found
in the vars are the ones to be configured on the hosts
Diffstat (limited to 'host_vars')
| -rw-r--r-- | host_vars/rpi5.local.yml.example | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host_vars/rpi5.local.yml.example b/host_vars/rpi5.local.yml.example index 9361aae3..49fcc3ba 100644 --- a/host_vars/rpi5.local.yml.example +++ b/host_vars/rpi5.local.yml.example @@ -17,9 +17,11 @@ pihole_dhcp_hosts: - "ff:ff:ff:ff:ff:fe, 10.0.0.252,TV" - "ff:ff:ff:ff:ff:ff, 10.0.0.253,Printer" -wireguard_autostart_connection: "wg-vpn2" +wireguard_autostart_connection: "vpn2" wireguard_connections: - wg-vpn2: | + # All wireguard config files are prefixed (internally) with wg- + # The following connection/interface will be named wg-vpn2 + vpn2: | [Interface] PrivateKey = your_private_key_here Address = 10.2.0.2/32 |
