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:
parent
9df0098669
commit
e83b5869a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user