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 -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CABnTgtUe5gWqQ%3DzDaB1ccgTeNVu6Zd7VcDx-c_VymF8V4wOzaA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
