diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc71b406980f35366bc93a9ff0e258653392e3a0..6b63be1a8ab94583e8e9b8a87367e568623bcbd0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,7 +67,7 @@ testinfra:
   image: docker.greenhost.net/openappstack/bootstrap/bootstrap-ci
   script:
     - cd test/
-    - py.test -v --ansible-inventory=./inventory.yml --connection=ssh --hosts='ansible://*'
+    - py.test -v --connection=ansible --ansible-inventory=./inventory.yml --hosts='ansible://*'
   cache:
     key: "$CI_PIPELINE_ID"
     paths:
diff --git a/test/ci-bootstrap.py b/test/ci-bootstrap.py
index cb36d10198668a3f83b2ce444da0762870e47cad..f58099421449a0a2ee318f4542bc597312573ea5 100755
--- a/test/ci-bootstrap.py
+++ b/test/ci-bootstrap.py
@@ -170,6 +170,8 @@ if __name__ == "__main__":
     del inventory['all']['hosts']['oas-dev']
 
     inventory['all']['hosts'][name]['ansible_host'] = ip
+    inventory['all']['hosts'][name]['ansible_ssh_extra_args'] = \
+        '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
     inventory['all']['children']['cluster']['hosts'] = name
     inventory['all']['children']['master']['hosts'] = name
     inventory['all']['children']['worker']['hosts'] = name