ERROR: parse error: playbooks must be formatted as a YAML list, got <type 'dict'> And here is the playbook (used from the ansible documentation) at http://docs.ansible.com/playbooks_loops.html#looping-over-hashes: