Include currently used set of handlers in main 89/57489/1
authorDaniel Farrell <dfarrell@redhat.com>
Wed, 27 May 2015 20:34:14 +0000 (16:34 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 16:52:23 +0000 (12:52 -0400)
The order of the handlers is critical! Per the Ansible docs,
handlers are run in the order they are included. Changing
the order may result in event orders other than the desired
[stop ODL, cleanup Karaf, start ODL].

Relevant to #7

Change-Id: Ic64127b3f3fe8d3d27322524e3c8d0eb52a5c8f8
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
handlers/main.yml

index 0ddf0bc824d4256785d04faee55c08482933087a..8a0b75dcbed01055e36c1b8e2de04f381f502959 100644 (file)
@@ -1,3 +1,6 @@
 ---
-- include: restart_odl.yml
+- include: stop_odl.yml
+  when: ansible_os_family == 'RedHat'
+- include: cleanup_karaf.yml
+- include: start_odl.yml
   when: ansible_os_family == 'RedHat'