New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only 1 notification being fire when 2 roles with same handler name assigned to host #4943
Comments
workaround ...
|
@mpdehaan could you weigh in on this? I'm not sure if we want to think of handlers as independent with each role or if we want to stick with the current behavior. |
It seems that handlers for each name should be unique across roles. If you want to trigger multiple handlers, handlers are unique by name. Thus you can parameterize the name of the handler like:
And then:
And things will be good. This requires Ansible 1.4 |
I recommend to "clearly" document this requirement in Ansible Documentation :-) |
Improve error handling in docker_service module
2 roles with the same handler named assigned to host, only 1 handler will be executed.
I bisected commits, and found that the problem commit is:
f081c68
Here's my reproducer:
https://github.com/jsmartin/test-ansible.git
Here you can see only the handler in role "a" was activated
Now let's try with 1.3.4
Here you can see both handlers were activated.
The text was updated successfully, but these errors were encountered: