Hi,
On 7/12/19 10:12 AM, S C Rigler wrote:
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 [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAFbiokc40fUQbzJ1J-5XKtWDZenCmYK35mWwBeUaW6OZ0qObvQ%40mail.gmail.com
<https://groups.google.com/d/msgid/ansible-project/CAFbiokc40fUQbzJ1J-5XKtWDZenCmYK35mWwBeUaW6OZ0qObvQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Hugo F. González
Senior Automation Consultant
Red Hat LATAM <https://www.redhat.com>
[email protected] <mailto:[email protected]>
<https://www.redhat.com>
--
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/89982417-356c-d6db-b8a7-ae31918bd461%40redhat.com.
For more options, visit https://groups.google.com/d/optout.