Assuming that is your full playbook file, it needs more than tasks.

Sample of a working file, read up for explanation of each portion:

---
- hosts: system1,system2
  tasks:
    - name: task1
      stat: path=something
      register: stat_something

There is also a method in a playbook that breaks tasks and other items into 
separate files in a directory structure, see the docs as mentioned.

-- 
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/f970447a-c709-440b-9a48-732d0da28633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to