From 3da5d970203b4d9b244573ff6ab0883aeb048616 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 23 Aug 2020 01:25:34 +0200 Subject: [PATCH 1/2] Update include_vars methode --- tasks/main.yml | 5 ++++- vars/{RedHat_7.yml => RedHat.yml} | 0 vars/RedHat_8.yml | 4 ---- 3 files changed, 4 insertions(+), 5 deletions(-) rename vars/{RedHat_7.yml => RedHat.yml} (100%) delete mode 100644 vars/RedHat_8.yml diff --git a/tasks/main.yml b/tasks/main.yml index ec206dc..f773fd1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,7 +2,10 @@ - name: WireGuard setup block: - name: Include vars for {{ ansible_os_family }} - include_vars: "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml" + include_vars: "{{ item }}" + with_first_found: + - "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml" + - "{{ ansible_os_family }}.yml" - name: Pre-installation include_tasks: "install_{{ ansible_os_family }}.yml" diff --git a/vars/RedHat_7.yml b/vars/RedHat.yml similarity index 100% rename from vars/RedHat_7.yml rename to vars/RedHat.yml diff --git a/vars/RedHat_8.yml b/vars/RedHat_8.yml deleted file mode 100644 index 39f5d41..0000000 --- a/vars/RedHat_8.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -wireguard_packages: - - kmod-wireguard - - wireguard-tools From 18c328c8aa5a2f7fde2b7ee6cd7ff41768590dca Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 23 Aug 2020 01:25:46 +0200 Subject: [PATCH 2/2] Update service description --- templates/etc/firewalld/services/wireguard.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/firewalld/services/wireguard.xml b/templates/etc/firewalld/services/wireguard.xml index c2ede6d..c673371 100644 --- a/templates/etc/firewalld/services/wireguard.xml +++ b/templates/etc/firewalld/services/wireguard.xml @@ -1,6 +1,6 @@ WireGuard - WireGuard is a virtual private network (VPN) solution. It is used to create encrypted point-to-point tunnels between computers. If you plan to provide a VPN service, enable this option. + Wireguard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography.