diff --git a/tasks/configure_fail2ban.yml b/tasks/configure_fail2ban.yml
index 5f2185541b97935dc2c7552c81cd92862f19a2a5..4238daa61f9ba97e539d750d9f87ba129e61d770 100644
--- a/tasks/configure_fail2ban.yml
+++ b/tasks/configure_fail2ban.yml
@@ -29,7 +29,7 @@
 
       # ignored IPs: localhost, VLAN 20 (DV), sdvgubs10 (IP from multiple
       # subnets/VLANs), VPN IP ranges
-      ignoreip = 127.0.0.1/8 {{ vlans }} {{ vault_gubs_ips }} {{ vault_host_greenbone }}
+      ignoreip = 127.0.0.1/8 {{ vlans | join(" ") }} {{ gubs_ips | join(" ") }} {{ host_greenbone }}
 
       # number of failures that have to occur in the last findtime seconds to
       # ban then IP.