style 💎: Update regex pattern for finding krb5.conf path

Updated the regular expression to correctly extract the krb5.conf path from the Samba provision output, ensuring consistency in the configuration file location.
This commit is contained in:
2025-11-06 05:52:17 +01:00
parent 6db8e3d015
commit b87ab88f52

View File

@@ -3,7 +3,7 @@
ansible.builtin.set_fact:
krb5_conf_path: >-
{{ (samba_provision_output.stdout
| regex_findall("(/\\S*krb5\\.conf)")
| regex_findall("(/[^\\s]+/krb5\\.conf)")
| default([])
) | first | default('') }}
when: samba_provision_output.stdout is defined