Change the example of playbook include. (#22697)
This (taken from https://github.com/ansible/ansible-examples/blob/master/language_features/nested_playbooks.yml) is a better example. It makes it clear that the full file name is used, and a single filename, as opposed to a YAML list. The old version, it was not clear if 'list_of_plays' was an *example* or a *variable*.pull/4420/head
parent
d791665559
commit
17b8bfc7a2
|
@ -37,7 +37,7 @@ Task versus Play includes
|
||||||
Tasks and plays both use the `include` keyword, but implement the keyword differently. The difference between them is determined by their positioning and content. If the include is inside a play it can only be a 'task' include and include a list of tasks; if it is at the top level, it can only include plays. For example::
|
Tasks and plays both use the `include` keyword, but implement the keyword differently. The difference between them is determined by their positioning and content. If the include is inside a play it can only be a 'task' include and include a list of tasks; if it is at the top level, it can only include plays. For example::
|
||||||
|
|
||||||
# this is a 'play' include
|
# this is a 'play' include
|
||||||
- include: listofplays
|
- include: intro_example.yml
|
||||||
|
|
||||||
- name: another play
|
- name: another play
|
||||||
hosts: all
|
hosts: all
|
||||||
|
|
Loading…
Reference in New Issue