Playbook error "list object has no attribute" (vars, lists, dictionaries)

I’m trying to set up a few users on a Linux box using Ansible and I keep running into a weird error. First, here’s the playbook:

`

default_users is a list, you need to loop over it. Look into with_items

So I can’t loop over variables like this?

Like what? You aren’t looping anything in those tasks you showed. You’ll need to use with_items to actually do a loop.