From fc0aeb908ebf13cfe0c0b75b15494498ebfaadd2 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 5 Nov 2025 21:15:00 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20regex=20patter?= =?UTF-8?q?n=20for=20krb5.conf=20path=20extraction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the regular expression to extract the absolute path of the krb5.conf file from the provision output, ensuring consistency and accuracy in the extracted value. --- tasks/kerberos.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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