From f0fd1d5aa0d0a2d4cfa0f02c52ce80c74e0c2b6a Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Wed, 7 May 2025 14:38:01 +0200 Subject: [PATCH] Skip delegate_to tasks when running in installer --- roles/lmn_vpn/tasks/wg_config.yml | 4 +++- roles/lmn_wlan/tasks/eap-tls_check-certificate.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/lmn_vpn/tasks/wg_config.yml b/roles/lmn_vpn/tasks/wg_config.yml index 88b3f40..1e42049 100644 --- a/roles/lmn_vpn/tasks/wg_config.yml +++ b/roles/lmn_vpn/tasks/wg_config.yml @@ -20,7 +20,9 @@ when: result.stdout is not defined or result.stdout!="reachable" - name: Configure WG Server - when: result.stdout is defined and result.stdout=="reachable" + when: + - result.stdout is defined and result.stdout=="reachable" + - not run_in_installer|default(false)|bool block: - name: Set facts wg_clientname ansible.builtin.set_fact: diff --git a/roles/lmn_wlan/tasks/eap-tls_check-certificate.yaml b/roles/lmn_wlan/tasks/eap-tls_check-certificate.yaml index c527f06..79932f0 100644 --- a/roles/lmn_wlan/tasks/eap-tls_check-certificate.yaml +++ b/roles/lmn_wlan/tasks/eap-tls_check-certificate.yaml @@ -46,6 +46,7 @@ ansible.builtin.include_tasks: eap-tls_issue-certificate.yaml when: - radius_reachable.stdout is defined and radius_reachable.stdout=="reachable" + - not run_in_installer|default(false)|bool - | ( not cert_client_active.stat.exists ) or (cert_serial.stdout | replace('serial=','') | int(base=16) ) in ( radius_crl.revoked_certificates | map(attribute='serial_number') | list ) or