Hello,
I am using ansible 1.9.0.1 
I get the following error. Let me know if I am doing something incorrect.

 ansible-playbook site.yml --syntax-check


Following error occurs 

ERROR: parse error: playbooks must be formatted as a YAML list, got <type 
'dict'



# site.yml file

  hosts: ansible_slaves

  user: ansible

  sudo: yes


  #Define user and password variables

  vars:

    # created with:

    password : dummyuser

    user : dummypassword


  # Define task to add user

  tasks:

    - name: add user

      action: user name={{ user }} password={{ password }} 
update_password=always 

                   shell=/bin/bash home=/home/{{ user }}

      tags:

        - user






-- 
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/7a4f5436-2a56-4314-8a40-59a6b622d7fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to