mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-21 11:34:15 -07:00
update docs, fix playbook page formatting
This commit is contained in:
parent
496686629a
commit
38e8771785
6 changed files with 16 additions and 16 deletions
|
@ -394,18 +394,9 @@ include files to do this.</p>
|
|||
action: command /bin/bar</pre>
|
||||
</div>
|
||||
<p>Include directives look like this:</p>
|
||||
<blockquote>
|
||||
<div><ul>
|
||||
<li><dl class="first docutils">
|
||||
<dt>tasks:</dt>
|
||||
<dd><ul class="first last simple">
|
||||
<li>include: tasks/foo.yml</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div></blockquote>
|
||||
<div class="highlight-python"><pre>- tasks:
|
||||
- include: tasks/foo.yml</pre>
|
||||
</div>
|
||||
<p>Variables passed in can be used in the include files too. Assume a variable named ‘user’. Using
|
||||
<cite>jinja2</cite> syntax, anywhere in the included file, you can say:</p>
|
||||
<div class="highlight-python"><pre>{{ user }}</pre>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue