Merge "ntp: check for ntp group in inventory"
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user