diff --git a/tasks/cleanup.yml b/tasks/cleanup.yml
index 058b62064a0075df00a6ae695594a1da9c0ba80d..62073494ad1d4365e2efe1f5053747396ca5ef13 100644
--- a/tasks/cleanup.yml
+++ b/tasks/cleanup.yml
@@ -13,16 +13,16 @@
   command: usermod --unlock {{item.split(':').0}}
   when: item.split(':').0 in users
     and item.split(':').2|int > 499
-  with_items: passwd.stdout_lines
+  with_items: '{{ passwd.stdout_lines }}'
 
 - name: "Lock deprecated user accounts"
   command: usermod --lock {{item.split(':').0}}
   when: item.split(':').0 not in users
     and item.split(':').2|int > 499
-  with_items: passwd.stdout_lines
+  with_items: '{{ passwd.stdout_lines }}'
 
 - name: "Disable ssh keys for deprecated user accounts"
   command: rm {{item.split(':').5}}/.ssh/authorized_keys
   when: item.split(':').0 not in users
     and item.split(':').2|int > 499
-  with_items: passwd.stdout_lines
+  with_items: '{{ passwd.stdout_lines }}'