Hi,

Yeah it's already sorted, but thanks!

/M

On Wednesday, September 3, 2014 1:32:49 PM UTC+2, Bohdan Sydor wrote:
>
> On Wed, Sep 3, 2014 at 9:48 AM, Dick Davies <[email protected] 
> <javascript:>> wrote: 
> > On 30 August 2014 18:30, Mikael Sandström <[email protected] 
> <javascript:>> wrote: 
> >> "{{ (((60/100)* ansible_memtotal_mb)*1024)/2048  }}" 
> >> Result: 600.6 and I'd like to round that to 601 
> >> 
> >> Result: 1201.1 should be rounded to 1201 
> >> Any idea on how  to do that? 
>
> Hi, 
>
> Please take a look at this example: 
>
> innodb_buffer_pool_size         =       {{ 
> (0.85*ansible_memtotal_mb/1024)|int }}G 
>
> As a result I get: 
> innodb_buffer_pool_size         =       120G 
>
> -- 
> Best, 
> b 
>

-- 
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/c4b2f757-4cfc-45e4-9305-ed66babab9e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to