Use `search` or `match` instead of `equalto`.  They are regex search tests.
 `search` matches anywhere within the string, `match` is bound to matching
where a string starts with a value.

On Mon, Apr 9, 2018 at 5:02 PM, Shahzad Malik <[email protected]>
wrote:

> Yes. Equalto was added in 2.8 and I can't use this ver on RHEL at this
> stage. Is there other than equalto solution which I can use with 2.7 On
> RHEL 7.4? Thanks
>
>
> On Monday, April 9, 2018, Kai Stian Olstad <ansible-project+list@olstad.
> com> wrote:
>
>> On Monday, 9 April 2018 14.38.51 CEST [email protected] wrote:
>> > Hi
>> > I am trying to run below playbook to find the server (openstack host),
>> on
>> > which vm will be running using jinja2 filter but getting error no test
>> > named 'equalto'. After googling found some ppl suggested upgrade jinja2
>> and
>> > I am using version 2.7 on RHEL which is latest for RHEL.
>>
>> Equalto was added in 2.8.
>>
>>
>> --
>> Kai Stian Olstad
>>
>> --
>> 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 post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/ansible-project/5664000.Igbv7u9FxM%40x1.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/ansible-project/CAA1HA3ivVQA6UKOR_mV%2BPnDAmyb%2B_
> tb5AK7ArgjhgoCXrRtDjA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAA1HA3ivVQA6UKOR_mV%2BPnDAmyb%2B_tb5AK7ArgjhgoCXrRtDjA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v-uerCKv8MpP8ighoz0XCdu3bDmOa5nq-D-hS2rwGSYOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to