Do not run timesync checks on deployment host

Kolla-ansible install python docker library in role/baremetal
to group/baremetal, because of this get container facts
for timesync checks is failing on deployment host.

This patch adding when conditional, so deployment host
will be skipped as there is no need to run timesync
checks.

Closes-Bug: #1933347
Change-Id: Ifefb9c74ee6a80cdbc458992d0196850ddfe7ffa
This commit is contained in:
Michal Arbet 2021-06-23 15:28:04 +02:00
parent 18fd27feff
commit 281c9935da
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- include_tasks: timesync_checks.yml
when:
- not enable_chrony | bool
- inventory_hostname not in groups['deployment']|default([])
- import_tasks: datetime_checks.yml

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes an issue with timesync checks on deployment host. See `bug
1933347 <https://launchpad.net/bugs/1933347>`__ for details.