Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Only 1 notification being fire when 2 roles with same handler name assigned to host #4943
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:
Here's my reproducer:
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.
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 things will be good.
This requires Ansible 1.4