diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 07963bed9165ef7601cddffb308a11477236ad2b..1815dc8de5cb6802830bc15e318adec9dee608fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,7 +31,7 @@ bootstrap:
     - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
     # - mkdir -p --mode 700 ~/.ssh
     - ANSIBLE_HOST_KEY_CHECKING=False python3 -u ./ci-bootstrap.py --create_droplet
-    - py.test -v --ansible-inventory=./inventory.yml --hosts='ansible://*'
+    - py.test -v --ansible-inventory=./inventory.yml --connection=ssh --hosts='ansible://*'
     - python3 -c "import cosmos; cosmos.terminate_droplets_by_name(\"^ci-${CI_JOB_ID}\$\")"
   artifacts:
     paths: