Try the 'lines' lookup with a custom 'find' shell command ?
On Sat, 7 Mar 2020 at 06:27, Shifa Shaikh wrote:
>
> I wish to check using if condition inside a jinja template where any of the
> folders starting with the name "dump_" has any file starting with the name bad
>
> For for single
I wish to check using if condition inside a jinja template where any of the
folders starting with the name "dump_" has any file starting with the name
bad
For for single folder the below jinja template works as suggested by an
expert on this forum.
{% if lookup('fileglob', playbook_dir +