diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c87ba5ee01ff863748660b8a32f72aca90e0f46c..6c9ddd7331fa7941f79749bf66964d9ef2d5e455 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -69,6 +69,7 @@ ansiblelint:
 
 build_cluster_cicd:
   stage: openstack_create
+  image: ubuntu
   allow_failure: false
   tags:
   - heat
@@ -78,6 +79,7 @@ build_cluster_cicd:
     - chmod 400 gc_key.pem
     - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh
   script:
+    - pip3 install python-cinderclient python-keystoneclient python-novaclient python-openstackclient PyYAML ansible
     - echo "create stage"
     - source ./$NECTAR_ALLOCATION-openrc.sh
     - ssh-keygen -f tmp_key -N "" -t ed25519
@@ -108,9 +110,11 @@ build_cluster_cicd:
 
 ansible_create_cluster_stage:
   stage: ansible_create_cluster_stage
+  image: ubuntu
   tags:
   - ansible
   script:
+    - pip3 install python-cinderclient python-keystoneclient python-novaclient python-openstackclient PyYAML ansible
     - cd CICD
     - pwd
     - python3 ./make_files.py ./inventory.yml ./infra/os_vars.yml ./vars/versions.yml