diff --git a/tasks/cleanup.yml b/tasks/cleanup.yml
index 3ee0c7d754e462ce3db729971045c04f8ee7fee4..5e7a7851802454241b939b9aa257f52c01e3fcdc 100644
--- a/tasks/cleanup.yml
+++ b/tasks/cleanup.yml
@@ -6,8 +6,8 @@
     name: '{{ item }}'
     state: absent
   with_items:
-    - {{ static_ipv4|default(false) }}
-    - {{ host }}
+    - '{{( static_ipv4|default(false) }})'
+    - '{{( host }})'
 
 - name: Remove host from hosts file 1
   lineinfile: