diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml
index 3faaef2dbd013d9ea9d795babba6810d7d871474..b5801290939f25f3921b952f38037cf0e37af3a2 100644
--- a/roles/firewall/tasks/main.yml
+++ b/roles/firewall/tasks/main.yml
@@ -1,4 +1,16 @@
 ---
+- name: Install firewall dependencies
+  apt:
+    update_cache: true
+    install_recommends: false
+    name:
+      - python3-iso8601
+      - python3-jinja2
+      - python3-ldap
+  register: apt_result
+  retries: 3
+  until: apt_result is succeeded
+
 - name: Create firewall directory
   file:
     path: /var/local/firewall