kolla-ansible/ansible/roles/prechecks/tasks/timesync_checks.yml
Radosław Piliszek 04315751a4 Drop the NTP service precheck
We can't check this with timedatectl as it is not aware
of any "non-native" NTP daemon.

This could be a warning-level message but we don't have
such messages from the prechecks.

Closes-Bug: #1922721
Change-Id: I6db37576118cf5cff4ba7a63e179f0ab37467d22
2021-04-06 12:24:15 +00:00

15 lines
372 B
YAML

---
- name: Checking timedatectl status
become: true
command: timedatectl status
register: timedatectl_status
changed_when: false
- name: Fail if the clock is not synchronized
fail:
msg: >-
timedatectl sees the system clock as unsynchronized.
Please wait for synchronization.
when:
- "'synchronized: yes' not in timedatectl_status.stdout"