CI: Wait for NTP synced status in systemd

Debian's ntpd often needs more time to settle and we fail on prechecks.

Change-Id: Id23f40ab7ef75d06bb92973042c9af580ddffeb0
This commit is contained in:
Michał Nasiadka 2021-05-14 09:49:10 +02:00 committed by Radosław Piliszek
parent 9df0098669
commit e83b5869a3

View File

@ -79,3 +79,11 @@
hostname:
name: "{{ inventory_hostname }}"
become: true
- name: Wait for ntp time sync
command: timedatectl status
register: timedatectl_status
changed_when: false
until: "'synchronized: yes' in timedatectl_status.stdout"
retries: 90
delay: 10