# order of handler

**URL:** <https://forum.ansible.com/t/order-of-handler/21704>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [June 8, 2016, 8:09pm UTC](https://forum.ansible.com/t/order-of-handler/21704 "2016-06-08T20:09:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hajo\_Kliemeck](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Hajo\_Kliemeck](https://forum.ansible.com/u/Hajo_Kliemeck)\
**Post date:** [June 8, 2016, 8:09pm UTC](https://forum.ansible.com/t/order-of-handler/21704/1 "2016-06-08T20:09:18Z")

</div>

Hey,

i would like to discuss the idea of handler orders, because working with a lot of rules could be difficult (+handler definition order).

example:

- role1

- create share on windows host (notify: remove share)

- role2

- mount share (notify: unmount share)

- create temp directory (notify: remove temp directory)

- handler execution (current v1)

- remove share

- remove temp directory

- unmount share- handler execution (current v2, switch 2+3, because of handler order within role)

- remove share

- unmount share

- remove temp directory

- handler execution ( **future** )

- remove temp directory

- unmount share

- remove share

Feedback appreciated:

[https://github.com/ansible/ansible/issues/15939](https://github.com/ansible/ansible/issues/15939)

maybe this will get into 2.2?

Regards  
Hajo
