kayobe/ansible/time.yml
Michal Nasiadka c5a3efafb4 [release] Sync Kolla Ansible inventory for Xena
Change-Id: Ib6f89f57a1fe9dc88414260e8a221de3ecd6b9a5
2021-10-15 13:02:53 +02:00

32 lines
610 B
YAML

---
- name: Ensure timezone is configured
hosts: seed-hypervisor:seed:overcloud:infra-vms
tags:
- timezone
tasks:
- import_role:
name: stackhpc.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"
- name: Ensure Chrony is installed and configured
hosts: ntp
tags:
- ntp
tasks:
- import_role:
name: ntp