Skip to content
Snippets Groups Projects
Commit 8b1d5f05 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "ntp: check for ntp group in inventory"

parents 9883726b 9d3045db
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,21 @@ ...@@ -8,6 +8,21 @@
name: yatesr.timezone name: yatesr.timezone
become: True 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 - name: Ensure Chrony is installed and configured
hosts: ntp hosts: ntp
tags: tags:
......
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