diff --git a/Dockerfile b/Dockerfile
index 28ba476c55dfae1eb8dc1519763471f00597c829..815515a02fce58d92114dc3a95b9dc4726010d15 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,6 +17,7 @@ RUN pip install \
     --extra-index-url https://artifactory.software.geant.org/artifactory/api/pypi/geant-swd-pypi/simple \
     --target /app \
     goat-lso==${ARTIFACT_VERSION} && \
+    pip install ansible && \
     ansible-galaxy collection install  \
                    community.general  \
                    juniper.device \
diff --git a/setup.py b/setup.py
index 24315c22f4fc64bd2ade4886cdffe2f61f5f8910..e69eadf56b2ebb092e79e011639b21e349a88d30 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
         "jsonschema~=4.18.0",
         "fastapi~=0.100.0",
         "pydantic~=2.0.2",
-        "ansible~=8.1.0",
+        "ansible~=9.0.1",
         "requests~=2.31.0",
         "uvicorn~=0.22.0",
         "ncclient~=0.6.13",