Thanks again Vladimir. I ended up finding a simpler approach.
This was my fault because the fake IP addresses that I made didn't really
represent the real IP addresses.
1.1.1.1
1.1.2.1
That is more of an accurate representation of the IP addresses that I am
looking for.
So I went with this:
tacacs is search("1.1.//d//.1")
Sorry for the confusion and thank you again for taking the time and looking
into this for me.
On Wed, Nov 4, 2020 at 3:37 AM Vladimir Botka <[email protected]> wrote:
> 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/CAANJ-QS1CaFHKRDU4Fum0qbg%3DOQvEpubEQ2FjJM_2_71RmWaSQ%40mail.gmail.com.