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