Handlers are called for all hosts (not only for the changed hosts)

Hello list,

I’m trying to roll out some mysql configuration files. The playbook itself is not the problem. My problem are the handlers that are for every given host and not only for the changed hosts.

I’ve got three servers that got some roles. The roles will be determinated by some “local gathering fact” script. If only one configuration file was changed by the ansible rollout the playbook will call the handler on all 3 hosts.

But first things first, here’s the playbook:

Please try things in 1.6.10, which is the latest version, and contains security updates that you will want.

Per the changelog, this was fixed in 1.6.3

https://github.com/ansible/ansible/blob/devel/CHANGELOG.md

Thank you. I’ll update ansible.