Commit 7628ccbf by Michael DeHaan

Merge pull request #3075 from dahpgjgamgan/doc_yaml_fix

advanced playbooks docs yaml snippets always use ---
parents b8630d2b 8ebd1792
...@@ -54,7 +54,7 @@ your webservers in "webservers.yml" and all your database servers in ...@@ -54,7 +54,7 @@ your webservers in "webservers.yml" and all your database servers in
"dbservers.yml". You can create a "site.yml" that would reconfigure "dbservers.yml". You can create a "site.yml" that would reconfigure
all of your systems like this:: all of your systems like this::
---- ---
- include: playbooks/webservers.yml - include: playbooks/webservers.yml
- include: playbooks/dbservers.yml - include: playbooks/dbservers.yml
...@@ -250,7 +250,7 @@ This is useful, for, among other things, setting the hosts group or the user for ...@@ -250,7 +250,7 @@ This is useful, for, among other things, setting the hosts group or the user for
Example:: Example::
----- ---
- user: '{{ user }}' - user: '{{ user }}'
hosts: '{{ hosts }}' hosts: '{{ hosts }}'
tasks: tasks:
...@@ -432,7 +432,7 @@ can accept more than one parameter. ...@@ -432,7 +432,7 @@ can accept more than one parameter.
``with_fileglob`` matches all files in a single directory, non-recursively, that match a pattern. It can ``with_fileglob`` matches all files in a single directory, non-recursively, that match a pattern. It can
be used like this:: be used like this::
---- ---
- hosts: all - hosts: all
tasks: tasks:
...@@ -592,7 +592,7 @@ The environment can also be stored in a variable, and accessed like so:: ...@@ -592,7 +592,7 @@ The environment can also be stored in a variable, and accessed like so::
While just proxy settings were shown above, any number of settings can be supplied. The most logical place While just proxy settings were shown above, any number of settings can be supplied. The most logical place
to define an environment hash might be a group_vars file, like so:: to define an environment hash might be a group_vars file, like so::
---- ---
# file: group_vars/boston # file: group_vars/boston
ntp_server: ntp.bos.example.com ntp_server: ntp.bos.example.com
......
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