On 1 April 2014 00:25, Premanand Chandrasekaran <[email protected]>wrote:
> *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: This is not a playbook, but two distinct snippets, the first from a vars file, the second is just a tasks list. Better have a look here http://docs.ansible.com/playbooks_intro.html to understand how a playbook is structured. > > --- > users: > alice: > name: Alice Appleworth > telephone: 123-456-7890 > bob: > name: Bob Bananarama > telephone: 987-654-3210 > > tasks: > - name: Print phone records > debug: msg="User {{ item.key }} is {{ item.value.name }} ({{ > item.value.telephone }})" > *with_dict*: users -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEhzMJBEhB3JbNxDVeyjHtKN3ESc8sS_ig1ayK_kpRPPjz_xRA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
