Only stop chrony on nodes in kolla inventory
If docker is not installed this task will currently fail. Change-Id: I0d3c7865eab71e0020bdb4646550d8ae27e31458 Story: 2006247 Task: 37391
This commit is contained in:
@@ -7,6 +7,15 @@
|
|||||||
|
|
||||||
- name: Stop the chrony container
|
- name: Stop the chrony container
|
||||||
hosts: overcloud
|
hosts: overcloud
|
||||||
|
vars:
|
||||||
|
# kolla_overcloud_inventory_top_level_group_map looks like:
|
||||||
|
# kolla_overcloud_inventory_top_level_group_map:
|
||||||
|
# control:
|
||||||
|
# groups:
|
||||||
|
# - controllers
|
||||||
|
overcloud_nodes_in_kolla_inventory: >-
|
||||||
|
{{ kolla_overcloud_inventory_top_level_group_map.values() |
|
||||||
|
map(attribute='groups') | flatten | unique | join(':') }}
|
||||||
tags:
|
tags:
|
||||||
- stop-chrony
|
- stop-chrony
|
||||||
tasks:
|
tasks:
|
||||||
@@ -14,4 +23,6 @@
|
|||||||
docker_container:
|
docker_container:
|
||||||
name: chrony
|
name: chrony
|
||||||
state: absent
|
state: absent
|
||||||
when: not kolla_enable_chrony | bool
|
when:
|
||||||
|
- not kolla_enable_chrony | bool
|
||||||
|
- inventory_hostname in query('inventory_hostnames', overcloud_nodes_in_kolla_inventory)
|
||||||
|
|||||||
Reference in New Issue
Block a user