diff --git a/defaults/main.yaml b/defaults/main.yaml index e4c68c2..4ba5873 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -1,3 +1,4 @@ +wireguard_install: yes wireguard_ui_container_engine: "{{ container_engine | default('podman') }}" wireguard_ui_container_name: "wireguard-ui" wireguard_ui_network_mode: "host" diff --git a/tasks/RedHat/main.yaml b/tasks/RedHat/main.yaml index 84b2750..99717e3 100644 --- a/tasks/RedHat/main.yaml +++ b/tasks/RedHat/main.yaml @@ -1,5 +1,7 @@ - name: "Include WireGuard install" include_tasks: wireguard_install.yaml + when: wireguard_install + - name: "Include WireGuard UI install with podman" include_tasks: podman.yaml when: wireguard_ui_container_engine == 'podman'