d8fe45b3d8
Having tagged plays allows us to easily run a subset of the plays for a command, and perform targeted operations with less risk of unintended consequences. The tags are typically named after the playbook, although some of the overcloud playbooks have been tagged without an overcloud- prefix.
25 lines
677 B
YAML
25 lines
677 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|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
|