I'm actually using this in a template, however the behavior is not as 
expected:

someVar = {{ ansible_memtotal_mb / 4|int }}

The result is '256.0', same when I remove the |int and same when I do * 
0.25.


Op maandag 17 februari 2014 16:15:07 UTC+1 schreef Brian Coca:
>
> something like {{ansible_memory * 0.75|int }} ?
>
>
> -- 
> Brian Coca
> Stultorum infinitus est numerus
>
> 0110000101110010011001010110111000100111011101000010000001111001011011110111010100100000011100110110110101100001011100100111010000100001
> Pedo mellon a minno
>  

-- 
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/1906f097-2e7c-4ba2-bed3-48dbbb5278b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to