With ansible 2.0.1.0, If I call missing handlers / handlers that are not
defined, they are silently ignored. Is that expected behavior? If so, is
there any way to check existence and force a failure when a handler I
declare doesn't exist? I can't think of many situations where I'd like it
to just keep running and claim success.
- debug: msg="expected behavior to not fail?"
> changed_when: true
> notify:
> - nonexistent_handler
>
> TASK [debug]
> *******************************************************************
> task path: /data/tst.yml:44
> NOTIFIED HANDLER nonexistent_handler
> ok: [testbox] => {
> "msg": "expected behavior to not fail?"
> }
>
> PLAY RECAP
> *********************************************************************
> testbox : ok=2 changed=1 unreachable=0
> failed=0
>
Thanks,
Patrick
--
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/a7ed940c-cdbb-42d5-8321-ba5fcdc86087%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.