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


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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to