# Check a var with 'meta noop'?

**URL:** <https://forum.ansible.com/t/check-a-var-with-meta-noop/30290>\
**Category:** Ansible Project\
**Created:** [May 9, 2019, 3:54pm UTC](https://forum.ansible.com/t/check-a-var-with-meta-noop/30290 "2019-05-09T15:54:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [May 9, 2019, 3:54pm UTC](https://forum.ansible.com/t/check-a-var-with-meta-noop/30290/1 "2019-05-09T15:54:46Z")

</div>

Hi! I have some ansible code to run a bunch of checks on a system to verify its compliance, and would like to check the kernel against an expected version. I was hoping this would work:

- name: versions | Check kernel against expected  
meta: noop  
failed\_when: false  
changed\_when: ansible\_kernel != expected\_kernel

this just always succeeds and does not show as changed . . . I don’t actually want to run anything, so ‘command: /bin/false’ seems inappropriate . . . any recommendations?

Thanks!  
Guy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [May 13, 2019, 2:16pm UTC](https://forum.ansible.com/t/check-a-var-with-meta-noop/30290/2 "2019-05-13T14:16:50Z")

</div>

Use debug, if you don't want it to normally display anything use the  
verbosity option.
