style 💎: Improve krb5_conf_path extraction regex

Updated the regular expression to extract the absolute path of the krb5.conf file from the samba provision output, ensuring a more accurate and reliable value.
This commit is contained in:
2025-11-05 22:59:54 +01:00
parent 1bf10307a6
commit 6db8e3d015

View File

@@ -2,7 +2,7 @@
- name: Extract absolute krb5.conf path from provision output
ansible.builtin.set_fact:
krb5_conf_path: >-
{{ (your_string_variable
{{ (samba_provision_output.stdout
| regex_findall("(/\\S*krb5\\.conf)")
| default([])
) | first | default('') }}