On Tue, 3 Nov 2020 14:00:49 -0800 (PST)
"[email protected]" <[email protected]> wrote:

> vars:
>  ips: [1.1.1.1,2.2.2.2]
> 
> tasks:
> ...
>     when tacacs.stdout[0] contains ips

The next option is Jinja2 test *in*
https://jinja.palletsprojects.com/en/master/templates/#in

      when: tacacs.stdout.0 is in(ips)


-- 
Vladimir Botka

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20201104103754.6b2e39bf%40gmail.com.

Attachment: pgpYzEbz2uq1I.pgp
Description: OpenPGP digital signature

Reply via email to