04315751a4
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
15 lines
372 B
YAML
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"
|