diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f760f956ac89c842945ef118f1443d6bd22ca8b6..4e911391e94349378d58987fb708c131b96be4ae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,6 +55,7 @@ bootstrap:
     key: "$CI_PIPELINE_ID"
     paths:
     - test/behave/behave.ini
+    - test/inventory.yml
   artifacts:
     paths:
     - ansible/rke.log
@@ -67,6 +68,11 @@ testinfra:
   script:
     - cd test/
     - py.test -v --ansible-inventory=./inventory.yml --connection=ssh --hosts='ansible://*'
+  cache:
+    key: "$CI_PIPELINE_ID"
+    paths:
+    - test/inventory.yml
+    policy: pull
 
 behave:
   stage: test