I\'m trying to filter a list in ansible in Jinja2 when the elements contain a string, but the Jinja documentation doesn\'t seem clear enough for me to figure it out.
Thi
I understand there may be more than one way to do this. Will this work for you?
- debug: var={{item}} when: item.find('running script') > -1 with_items: script_results.stdout_lines