On Wed, Sep 3, 2014 at 9:48 AM, Dick Davies <[email protected]> wrote:
> On 30 August 2014 18:30, Mikael Sandström <[email protected]> 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/CALtFRBji%2BBJy%2Bzhf7oLkBOUyNdEVzd0vK%3DR367yAw2ZADz7neA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to