From 1bf10307a6c5ccbdb31e01f67978612d7064c4da Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 5 Nov 2025 22:52:07 +0100 Subject: [PATCH] =?UTF-8?q?style=20=F0=9F=92=8E:=20Update=20regex=20patter?= =?UTF-8?q?n=20in=20kerberos.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/kerberos.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tasks/kerberos.yml b/tasks/kerberos.yml index 4a01b03..3deb906 100644 --- a/tasks/kerberos.yml +++ b/tasks/kerberos.yml @@ -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