Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
0926c91b
Commit
0926c91b
authored
Aug 14, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document host ranges (new in 0.6)
parent
0219d88f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
+13
-1
patterns.html
+6
-0
rst/patterns.rst
+7
-1
searchindex.js
+0
-0
No files found.
patterns.html
View file @
0926c91b
...
...
@@ -209,6 +209,12 @@ but they are useful.</p>
after the hostname with a colon.
</p>
<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
class=
"section"
id=
"selecting-targets"
>
<h2>
Selecting Targets
<a
class=
"headerlink"
href=
"#selecting-targets"
title=
"Permalink to this headline"
>
¶
</a></h2>
...
...
rst/patterns.rst
View file @
0926c91b
...
...
@@ -33,6 +33,13 @@ after the hostname with a colon.
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
+++++++++++++++++
...
...
@@ -81,7 +88,6 @@ It's also ok to mix wildcard patterns and groups at the same time::
one*.com:dbservers
Easy enough. See :doc:`examples` and then :doc:`playbooks` for how to do things to selected hosts.
Host Variables
...
...
searchindex.js
View file @
0926c91b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment