Compare commits
2 Commits
bfdd2d07b3
...
257d4b925d
| Author | SHA1 | Date | |
|---|---|---|---|
| 257d4b925d | |||
| bb99d469fe |
@@ -3,9 +3,9 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
krb5_conf_path: >-
|
krb5_conf_path: >-
|
||||||
{{ (your_string_variable
|
{{ (your_string_variable
|
||||||
| regex_search(r'(/\S*krb5\.conf)', '\\1')
|
| regex_search(r"(/\S*krb5\.conf)", "\\1")
|
||||||
| default([]) # ensures a list even if no match
|
| default([])
|
||||||
| first # safely take the first match
|
| first
|
||||||
) | default('', true) }}
|
) | default('', true) }}
|
||||||
when: samba_provision_output.stdout is defined
|
when: samba_provision_output.stdout is defined
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user