On Sat, May 26, 2018 at 11:26 AM, Kai Stian Olstad
<[email protected]> wrote:
>> This playbook results in the tasks being skipped because of evaluating
>> to false. The debug task shows the tests evaluating to true when using
>> jinja2 templating on the compared variable.
>
> The semmni_cur_limit and semmns_cur_limit is strings and you need to
> cast/filter then through int each time you use them.
> This is how Ansible/Jinga combo works at the time.
>
>> With jinja2 templating delimiters the comparison evaluates to true and
>> executes the tasks, but results in the warning. Is there a different
>> way to structure the conditional properly?
>
>   when: postgres_limit_semmns > semmns_cur_limit | int

This is enlightening and helped make adjustments. Thanks!

-- 
Darren Spruell
[email protected]

-- 
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/CAKVSOJXJT7n2QDvX-NuEFfwyEHL3PpVUTZ%3DK-Otsvi822gA0aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to