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 != item.value
    with_items:
      - { pname: 'net.core.rmem_max', value: "16777216" }
      - { pname: 'vm.nr_hugepages', value: 'regex[0-9]' }  <==== Issue
    changed_when: false
    ignore_errors: True

From,
Vino.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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9960a0ec-e63b-4aa4-8c38-40275b393b34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to