When systemd isn't installed, the `rpm -q` check exists with
a non-zero exit status (1), which is expected but interpreted
by Ansible as a failure. Tell Ansible that RC 0 and 1 are okay.
Change-Id: I75d5b7512a01001c46f7a9251f21bf772b7a9d4e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
---
- name: Check if systemd is installed
command: rpm -q systemd
+ failed_when: systemd_installed.rc not in [0, 1]
changed_when: false
register: systemd_installed
- include: configure_karaf_features.yml
- include: configure_nb_rest_port.yml
- include: open_nb_rest_port.yml
-- include: start_odl_systemd_service.yml
- include: start_odl.yml