On Wednesday, 12 December 2018 00:21:55 CET Stuart Longland wrote:
> I understood Ansible basically used the Python language within Jinja2.
> What's the difference between these two lines?
> 
>       {{hostvars[item].volume_size | default(100) | int}}
>       {{hostvars[item].get('volume_size',100) | int}}

All software have bugs and the Ansible way is probably used by most and have 
therefore been thoroughly tested.
So the easiest way to check that out is to test it.


-- 
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/msgid/ansible-project/8938591.v879NTsZqe%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to