Fix regex_search usage in domain join condition

This commit is contained in:
jeanGaston 2026-01-16 12:26:10 +01:00
parent b058149f8b
commit 685211f51f

View File

@ -67,4 +67,4 @@
no_log: false no_log: false
when: when:
- ad_join_run | bool - ad_join_run | bool
- ad_join_force | bool or (ad_join_realm_list.stdout is not regex_search('realm-name:\\s*' ~ (ad_join_domain_name | regex_escape) ~ '\\b')) - ad_join_force | bool or (ad_join_realm_list.stdout | regex_search('realm-name:\\s*' ~ (ad_join_domain_name | regex_escape) ~ '\\b') is none)