From fa2513c7363c165164de02e9b910ad40ebc6b0a4 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 14 Mar 2021 21:39:42 +0000
Subject: [PATCH] Fix order of steps in test-driver initialization

---
 test-driver | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test-driver b/test-driver
index c3789eb0..7a588a3a 100755
--- a/test-driver
+++ b/test-driver
@@ -59,6 +59,9 @@ run_init() {
     start_vagrant \
         || die "could not start VMs"
 
+    wait_for_vms \
+        || die "could not reach the VMs with Ansible"
+
     log Running init-credentials playbook
     ${float_dir}/float run init-credentials.yml \
         || die "failed to run the init-credentials playbook"
@@ -67,8 +70,6 @@ run_init() {
     ${float_dir}/float run site.yml \
         || die "failed to run the main playbook"
 
-    wait_for_vms \
-        || die "could not reach the VMs with Ansible"
 }
 
 run_cleanup() {
-- 
GitLab