diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 774a25c47356965716263a0597e324ac732e90a0..dc88bef47616b9a197a4dd66ecefd4b5dfbe4dad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,8 +40,8 @@ unit-test-job:   # This job runs in the test stage.
   script:
     - echo "Running unit tests..."
     - source ansible/bin/activate
-    - ansible --version
     - which ansible-playbook
     - which python3
     - which python
+    - ansible --version
     - ansible-playbook site.yml -b -l localhost