diff --git a/ci/Dockerfile b/ci/Dockerfile
index 5b32a9412ad63e0150495f6fa9b64397682e5d11..39d776f4c5bc0076c392bf41e5a1e15349f0ebb7 100644
--- a/ci/Dockerfile
+++ b/ci/Dockerfile
@@ -2,8 +2,7 @@ FROM debian:bullseye
 COPY with-ssh-key /usr/bin/with-ssh-key
 RUN apt-get -q update \
     && env DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends \
-        ansible python3-pip \
-    && pip3 install mitogen \
+        ansible ansible-mitogen \
     && apt-get clean \
     && rm -fr /var/lib/apt/lists/*