Commit b9d8ca4f by Michael DeHaan

Merge pull request #166 from lorin/tasks-not-element

'tasks' should not be preceded by '-' in examples
parents 71d7f1ac ce2cdc22
...@@ -276,7 +276,7 @@ A task include file simply contains a flat list of tasks, like so:: ...@@ -276,7 +276,7 @@ A task include file simply contains a flat list of tasks, like so::
Include directives look like this, and can be mixed in with regular tasks in a playbook:: Include directives look like this, and can be mixed in with regular tasks in a playbook::
- tasks: tasks:
- include: tasks/foo.yml - include: tasks/foo.yml
You can also pass variables into includes. We call this a 'parameterized include'. You can also pass variables into includes. We call this a 'parameterized include'.
...@@ -284,7 +284,7 @@ You can also pass variables into includes. We call this a 'parameterized includ ...@@ -284,7 +284,7 @@ You can also pass variables into includes. We call this a 'parameterized includ
For instance, if deploying multiple wordpress instances, I could For instance, if deploying multiple wordpress instances, I could
contain all of my wordpress tasks in a single wordpress.yml file, and use it like so:: contain all of my wordpress tasks in a single wordpress.yml file, and use it like so::
- tasks: tasks:
- include: wordpress.yml user=timmy - include: wordpress.yml user=timmy
- include: wordpress.yml user=alice - include: wordpress.yml user=alice
- include: wordpress.yml user=bob - include: wordpress.yml user=bob
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment