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 :
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,
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 !=
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
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