Document host ranges (new in 0.6)

pull/1256/head
Michael DeHaan 12 years ago
parent 0219d88fdd
commit 0926c91b28

@ -209,6 +209,12 @@ but they are useful.</p>
after the hostname with a colon.</p> after the hostname with a colon.</p>
<blockquote> <blockquote>
<div>four.example.com:5309</div></blockquote> <div>four.example.com:5309</div></blockquote>
<p>In 0.6 and later, if you have a lot of hosts following similar patterns you can do this:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="p">[</span><span class="n">webservers</span><span class="p">]</span>
<span class="n">www</span><span class="p">[</span><span class="mo">01</span><span class="o">-</span><span class="mi">50</span><span class="p">]</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
</pre></div>
</div>
<p>Leading zeros can be included or removed, as desired, and the ranges are inclusive.</p>
</div> </div>
<div class="section" id="selecting-targets"> <div class="section" id="selecting-targets">
<h2>Selecting Targets<a class="headerlink" href="#selecting-targets" title="Permalink to this headline"></a></h2> <h2>Selecting Targets<a class="headerlink" href="#selecting-targets" title="Permalink to this headline"></a></h2>

@ -33,6 +33,13 @@ after the hostname with a colon.
four.example.com:5309 four.example.com:5309
In 0.6 and later, if you have a lot of hosts following similar patterns you can do this::
[webservers]
www[01-50].example.com
Leading zeros can be included or removed, as desired, and the ranges are inclusive.
Selecting Targets Selecting Targets
+++++++++++++++++ +++++++++++++++++
@ -81,7 +88,6 @@ It's also ok to mix wildcard patterns and groups at the same time::
one*.com:dbservers one*.com:dbservers
Easy enough. See :doc:`examples` and then :doc:`playbooks` for how to do things to selected hosts. Easy enough. See :doc:`examples` and then :doc:`playbooks` for how to do things to selected hosts.
Host Variables Host Variables

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save