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