From 16b43088143541b91bfb05e64d2dee07189aeb0f Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 13 Nov 2025 21:27:01 +0100 Subject: 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 --- group_vars/all.yml.example | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'group_vars/all.yml.example') diff --git a/group_vars/all.yml.example b/group_vars/all.yml.example index 0e9dd8c9..a4e90f14 100644 --- a/group_vars/all.yml.example +++ b/group_vars/all.yml.example @@ -58,7 +58,9 @@ vimrc_setup_script: | wireguard_autostart_connection: "wg-vpn0" wireguard_connections: - wg-vpn0: | + # All wireguard config files are prefixed with wg- + # The following connection will be named wg-vpn0 + vpn0: | [Interface] PrivateKey = your_private_key_here Address = 10.2.0.2/32 -- cgit v1.2.3