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
50495680
Commit
50495680
authored
Feb 09, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2033 from lorin/intersect-pattern
Document :& host notation and using variables with hosts
parents
aebacdb2
44084a83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
docsite/rst/patterns.rst
+13
-1
No files found.
docsite/rst/patterns.rst
View file @
50495680
...
@@ -48,7 +48,7 @@ Adding a lot of hosts? In 0.6 and later, if you have a lot of hosts following s
...
@@ -48,7 +48,7 @@ Adding a lot of hosts? In 0.6 and later, if you have a lot of hosts following s
[webservers]
[webservers]
www[01:50].example.com
www[01:50].example.com
In 1.0 and later, you can also do this for alphabetic ranges::
In 1.0 and later, you can also do this for alphabetic ranges::
...
@@ -95,6 +95,18 @@ You can exclude groups as well, for instance, all webservers not in Phoenix::
...
@@ -95,6 +95,18 @@ You can exclude groups as well, for instance, all webservers not in Phoenix::
webservers:!phoenix
webservers:!phoenix
You can also specify the intersection of two groups::
webservers:&staging
You can do combinations::
webservers:dbservers:!phoenix:&staging
You can also use variables::
webservers:!$excluded:&$required
Individual host names (or IPs), but not groups, can also be referenced using
Individual host names (or IPs), but not groups, can also be referenced using
wildcards::
wildcards::
...
...
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