From 6c04c498694d1f7fdb40ee04b5c3f240eabf719b Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 15 Mar 2017 09:39:05 +0000 Subject: [PATCH] Ensure Kolla hosts are not running iSCSI initiator services --- ansible/kolla-host.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ansible/kolla-host.yml b/ansible/kolla-host.yml index b32a7e1f7..7fdd2d8d0 100644 --- a/ansible/kolla-host.yml +++ b/ansible/kolla-host.yml @@ -4,3 +4,18 @@ roles: - role: kolla-host kolla_authorized_key: "{{ lookup('file', ssh_public_key_path) }}" + +- name: Ensure Kolla host services are configured + hosts: controllers + tasks: + - name: Ensure host iSCSI services are stopped and disabled + service: + name: "{{ item }}" + state: stopped + enabled: no + become: True + with_items: + - iscsid.socket + - iscsiuio.socket + - iscsid.service + when: "{{ kolla_enable_ironic | bool }}"