Brian Coca
unread,Dec 19, 2017, 3:54:30 PM12/19/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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