Skip to content
Snippets Groups Projects
Commit 114b9290 authored by Will Szumski's avatar Will Szumski
Browse files

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
parent a02c6583
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,15 @@ ...@@ -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 @@ ...@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment