Merge "ntp: check for ntp group in inventory"

This commit is contained in:
Zuul
2021-06-03 14:04:16 +00:00
committed by Gerrit Code Review

View File

@@ -8,6 +8,21 @@
name: yatesr.timezone
become: True
- name: Ensure ntp group exists
hosts: all
gather_facts: no
tags:
- ntp
tasks:
- name: Ensure ntp group exists
fail:
msg: >-
The 'ntp' group does not exist in the Ansible inventory.
run_once: true
when:
- "'ntp' not in groups"
- not kolla_enable_chrony | bool
- name: Ensure Chrony is installed and configured
hosts: ntp
tags: