tasks are actions to be performed, a play is a mapping between a list
of hosts and list of tasks.

Normally you can recognize a play as it is the only thing that has a
`hosts:` keyword, tasks always belong inside a play, normally under
the tasks: keyword.

- name: this is a play
  hosts: all
  tasks:
    - name: this is a task
       debug: msg=this is a task

Tasks can be put in more places other than the tasks keyword, but they
always need to be inside a play to be executed. i.e they can be in a
role, but the role must be in a play.


-- 
----------
Brian Coca

-- 
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/CACVha7fOsXnjH0jFc-TJhYCrB1tJ855n30Oyr2qBk_WaLp6dDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to