From d20118a9c5521695e965256bdc7f35a20ff31351 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 7 Aug 2017 20:04:11 +0000 Subject: [PATCH] Don't fail when iscsi services are not installed --- ansible/kolla-host.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/kolla-host.yml b/ansible/kolla-host.yml index f105eab74..a1d27feef 100644 --- a/ansible/kolla-host.yml +++ b/ansible/kolla-host.yml @@ -12,4 +12,10 @@ - iscsid.socket - iscsiuio.socket - iscsid.service + register: result + failed_when: + - result|failed + # If a service is not installed, the ansible service module will fail + # with this error message. + - '"Could not find the requested service" not in result.msg' when: "{{ kolla_enable_ironic | bool }}"