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

**URL:** <https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818>\
**Category:** Ansible Project\
**Created:** [July 31, 2014, 8:37am UTC](https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818 "2014-07-31T08:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Laumann](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oliver\_Laumann](https://forum.ansible.com/u/Oliver_Laumann)\
**Post date:** [July 31, 2014, 8:37am UTC](https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818/1 "2014-07-31T08:37:59Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 31, 2014, 10:45pm UTC](https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818/2 "2014-07-31T22:45:12Z")

</div>

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](https://github.com/ansible/ansible/blob/devel/CHANGELOG.md)

---

<div class="post-metadata">

**Author:** ![Oliver\_Laumann](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oliver\_Laumann](https://forum.ansible.com/u/Oliver_Laumann)\
**Post date:** [August 1, 2014, 11:18am UTC](https://forum.ansible.com/t/handlers-are-called-for-all-hosts-not-only-for-the-changed-hosts/15818/3 "2014-08-01T11:18:53Z")

</div>

Thank you. I’ll update ansible.
