You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new feature of handler listen, a common use case is to notify an inexistent handler. However, currently Ansible expects the handler to be there and shows an error.
The error should be replaced with a warning so potential issues with typos in handler names and listen can be identified.
STEPS TO REPRODUCE
---
- name: test handlers listenhosts: localhostgather_facts: falseconnection: localtasks:
- name: notify some handlerscommand: echo foonotify:
- notify_listen_not_there
EXPECTED RESULTS
playbook gets executed with a warning.
ACTUAL RESULTS
$ ansible-playbook test_handlers_listen2.yml -vv
No config file found; using defaults
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAYBOOK: test_handlers_listen2.yml ********************************************
1 plays in test_handlers_listen2.yml
PLAY [test handlers listen] ****************************************************
TASK [notify some handlers] ****************************************************
task path: /home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.yml:6
ERROR! The requested handler 'notify_listen_not_there' was found in neither the main handlers list nor the listening handlers list
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
COMPONENT NAME
handler listen
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
With the new feature of handler listen, a common use case is to notify an inexistent handler. However, currently Ansible expects the handler to be there and shows an error.
The error should be replaced with a warning so potential issues with typos in handler names and listen can be identified.
STEPS TO REPRODUCE
EXPECTED RESULTS
playbook gets executed with a warning.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: