diff options
author | Chin Fang <fangchin@zettar.com> | 2012-07-24 12:38:52 -0700 |
---|---|---|
committer | Chin Fang <fangchin@zettar.com> | 2012-07-24 12:38:52 -0700 |
commit | e3b2521f016052a37029737db53bcff9294d53c8 (patch) | |
tree | 857529b118848d54b0f08fafd8e196141cd3dbaf /examples/hosts | |
parent | 2d1c297fb81f1cdd294e23cb3d86158c53b92e93 (diff) | |
download | ansible-e3b2521f016052a37029737db53bcff9294d53c8.tar.gz |
Added a host expansion feature to ansible's inventory parsing
Diffstat (limited to 'examples/hosts')
-rw-r--r-- | examples/hosts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/hosts b/examples/hosts index f58b26ed9e..a351674ac9 100644 --- a/examples/hosts +++ b/examples/hosts @@ -16,6 +16,8 @@ bikeshed.org bastion.secure.bikeshed.org 192.168.100.1 192.168.100.10 +# An example for host expansion that uses the default 'beg' and an 'end' +mail[:5].example.com # Ex 2: A collection of hosts belonging to the 'webservers' group [webservers] @@ -26,6 +28,9 @@ wheel.colors.com 192.168.1.110 # Your personal website also runs a webserver: myserver.com +# An example for host expansion that uses both a 'beg' and an 'end', with +# the 'beg' acting as a formatting hint during host name expansion +www[001:006].example.com # Ex 3: A collection of database servers in the 'dbservers' group [dbservers] @@ -35,3 +40,6 @@ db02.intranet.mydomain.net 10.25.1.57 # Perhaps you serve a db off your personal server too: myserver.com +# An example for host expansion that uses a regular 'beg' and a regular +# 'end' +db-[99:101]-node.example.com |