From e83b5869a38883c17a3ac23455e3939740f44831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Nasiadka?= Date: Fri, 14 May 2021 09:49:10 +0200 Subject: [PATCH] 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 --- tests/pre.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/pre.yml b/tests/pre.yml index 83df9bc3f0..40583178dd 100644 --- a/tests/pre.yml +++ b/tests/pre.yml @@ -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