Re: [ansible-project] Sysctl

2018-03-13 Thread Jean-Yves LENHOF
Why reinventing the wheel, there's already a function for this in jinja... numeric http://jinja.pocoo.org/docs/2.9/templates/#number You probably have to do two different steps... It depends exactly on what you want (perhaps not what you write) Regards, Le 13/03/2018 à 09:48, Vino B a écrit :

[ansible-project] Sysctl

2018-03-13 Thread Vino B
Hi All, Any help is much appreciated. -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group,

[ansible-project] Sysctl

2018-03-13 Thread Vino B
Hi All, Request your help, on the below code, i wanted to check whether the sysctl paramater "vm.nr_hugepages" has any numeric value . - name: Check whether System Settings are Optimized command: sysctl -n {{ item.pname }} register: net_param failed_when: net_param.stdout !=

[ansible-project] sysctl module: check parameter value before changing it

2016-09-07 Thread 'Felix Paetow' via Ansible Project
Hi together, at the moment I want to change some parameter values in sysctl.conf via sysctl, but I want to change them only when they are under my minimum requirements. By now, I think the only way of doing so is to define two tasks: - one debug task to register a variable with the value of

[ansible-project] sysctl module and removal of entry

2014-10-08 Thread KSS
Hi, I've come across a situation where the sysctl module is not removing an entry if the value matches even if the state is set to 'absent'. e.g, - The following *does not remove* the sysctl entry if the value below matches that in the sysctl file; - name: Test removal of