style 💎: Update regex pattern in kerberos.yml
Updated the regular expression to correctly extract the krb5.conf path from the Samba provision output. This change ensures that the correct path is used for setting the krb5_conf_path fact.
This commit is contained in:
@@ -3,10 +3,9 @@
|
||||
ansible.builtin.set_fact:
|
||||
krb5_conf_path: >-
|
||||
{{ (your_string_variable
|
||||
| regex_search(r"(/\S*krb5\.conf)", "\\1")
|
||||
| regex_findall("(/\\S*krb5\\.conf)")
|
||||
| default([])
|
||||
| first
|
||||
) | default('', true) }}
|
||||
) | first | default('') }}
|
||||
when: samba_provision_output.stdout is defined
|
||||
|
||||
- name: print krb5.conf path
|
||||
|
||||
Reference in New Issue
Block a user