Add logic for not starting ODL w/ sysd w/o sysd 12/57512/1
authorDaniel Farrell <dfarrell@redhat.com>
Thu, 13 Aug 2015 04:29:16 +0000 (00:29 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 16:52:24 +0000 (12:52 -0400)
Change-Id: Ic7dce2182086a0d6db530d978728d7e0bbb9014d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
tasks/main.yml
tasks/start_odl.yml [new file with mode: 0644]

index bbd1a579bb6464f574657306eb0bbbc7e32acda2..bd6ea33741db9c96fea0b2706be28cda9a8fc3b3 100644 (file)
@@ -7,3 +7,4 @@
 - include: configure_nb_rest_port.yml
 - include: open_nb_rest_port.yml
 - include: start_odl_systemd_service.yml
+- include: start_odl.yml
diff --git a/tasks/start_odl.yml b/tasks/start_odl.yml
new file mode 100644 (file)
index 0000000..3abbdfd
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- name: Check if systemd is installed
+  command: rpm -q systemd
+  register: systemd_installed
+
+- include: start_odl_systemd_service.yml
+  when: systemd_installed.rc == 1