diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d1f7e3013c6a04572b0e9340f918e9cd188e2bf..7df2ad66441b83ad6bff2a9828447d14b3de03ab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,4 +42,6 @@ unit-test-job:   # This job runs in the test stage.
     - apt-get -y update
     - apt-get -y install python3
     - source ansible/bin/activate
-    - ansible-playbook site.yml -b -l localhost -e 'roles_path=../'
+    - ansible-playbook site.yml -b -l localhost
+  variables:
+    - ANSIBLE_ROLES_PATH: "../"