Hi,
Is there any advantage to using the assert module vs the fail module to bail out of a play if an expected condition isn't met?
I don think there's a technical advantage, but the concepts are
different:
* use assert for checking against abnormal conditions, like a
malformed or missing input, missing file, that should never happen
in the normal flow of your playbook.
* use fail for aborting the playbook on operations that can
meaningfully fail and that you have an idea what's happening
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFbiokc40fUQbzJ1J-5XKtWDZenCmYK35mWwBeUaW6OZ0qObvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.