Skip delegate_to tasks when running in installer

This commit is contained in:
Raphael Dannecker 2025-05-07 14:38:01 +02:00
parent e060ba9161
commit f0fd1d5aa0
2 changed files with 4 additions and 1 deletions

View file

@ -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:

View file

@ -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