085cf7d175
Some hosts in the kayobe inventory might not be in the kolla-ansible inventory so it makes sense for kayobe to manage NTP. Change-Id: Iacb579a46b0e9769a4c404a858d17968f74dd7e0 Depends-On: https://review.opendev.org/c/openstack/kayobe-config-dev/+/786040 Story: 2007872 Task: 40240
12 lines
341 B
YAML
12 lines
341 B
YAML
---
|
|
|
|
- name: Validate structure of chrony_ntp_servers dictionary
|
|
assert:
|
|
that:
|
|
- chrony_ntp_servers is sequence
|
|
- chrony_ntp_servers | selectattr('server', 'undefined') | list | length == 0
|
|
msg: "chrony_ntp_servers set to invalid value"
|
|
when:
|
|
- chrony_ntp_servers is defined
|
|
- chrony_ntp_servers | length > 0
|