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