diff --git a/tasks/kerberos.yml b/tasks/kerberos.yml index a36725c..66a5c1f 100644 --- a/tasks/kerberos.yml +++ b/tasks/kerberos.yml @@ -1,9 +1,9 @@ --- -- name: Extract krb5.conf path from provision output (robust) +- name: Extract any absolute krb5.conf path from provision output ansible.builtin.set_fact: krb5_conf_path: >- {{ (samba_provision_output.stdout - | regex_search('generated at ([^\n]+/krb5\\.conf)', '\\1') + | regex_search('(/[^\\s]+/krb5\\.conf)', '\\1') | first) | default('', true) }} when: samba_provision_output.stdout is defined