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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user