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
maybe this will get into 2.2?
Regards
Hajo