diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 56134df530c17ac5228522136063bb909509ea1b..1e7dbe85c7dbba3ccc5c1b6450567540278ea70b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,6 +39,7 @@ unit-test-job:   # This job runs in the test stage.
   stage: test    # It only starts when the job in the build stage completes successfully.
   script:
     - echo "Running unit tests..."
+    - apt-get -y update
     - apt-get -y install python3
     - source ansible/bin/activate
     - which ansible-playbook