6df6277096
Since Ansible 2.5, the use of jinja tests as filters has been deprecated. I've run the script provided by the ansible team to 'fix' the jinja filters to conform to the newer syntax. This fixes the deprecation warnings. Change-Id: I775c849c944f82bdfc779c8c530346e7ebedbd2a
25 lines
680 B
YAML
25 lines
680 B
YAML
---
|
|
- name: Ensure Kolla host services are configured
|
|
hosts: controllers
|
|
tags:
|
|
- kolla-ansible
|
|
- kolla-host
|
|
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
|
|
register: result
|
|
failed_when:
|
|
- result is 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
|