diff --git a/tests/azure/templates/playbook_tests.yml b/tests/azure/templates/playbook_tests.yml
index 6962fb76fb3575d802a9cc4d0d7697a0d7cb54cf..6a8ac787bd06fb385a3075f45b26b3cc0da53443 100644
--- a/tests/azure/templates/playbook_tests.yml
+++ b/tests/azure/templates/playbook_tests.yml
@@ -34,6 +34,9 @@ jobs:
         "ansible${{ parameters.ansible_version }}"
     displayName: Install molecule and Ansible
 
+  - script: |
+      ansible-galaxy collection install community.docker
+
   - script: pip install -r requirements-tests.txt
     displayName: Install dependencies
 
diff --git a/tests/azure/templates/pytest_tests.yml b/tests/azure/templates/pytest_tests.yml
index d4254543926f18e16747f7eb01d6c36f3e255b5b..80db74f5813f2b1fa5d863d65d00dd148776b9ec 100644
--- a/tests/azure/templates/pytest_tests.yml
+++ b/tests/azure/templates/pytest_tests.yml
@@ -26,6 +26,9 @@ jobs:
         "ansible${{ parameters.ansible_version }}"
     displayName: Install molecule and Ansible
 
+  - script: |
+      ansible-galaxy collection install community.docker
+
   - script: pip install -r requirements-tests.txt
     displayName: Install dependencies