diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2012-03-10 16:19:33 -0500 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2012-03-10 16:19:33 -0500 |
commit | dce6074a81a1b96abb7f8587f4c060439e6c009d (patch) | |
tree | ed6e11aaba349ebbb1ac9a43f37759d3b2ec42a4 /examples/hosts | |
parent | 3f245498c4ce279c8765f4fbed30bbe00a6e84cd (diff) | |
download | ansible-dce6074a81a1b96abb7f8587f4c060439e6c009d.tar.gz |
Fixes for better RPM packaging
Spec file installs default example hosts files
Spec file marks the contents of /etc/ansible as %config(noreplace)
Example hosts file now with instructional comments
Diffstat (limited to 'examples/hosts')
-rw-r--r-- | examples/hosts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/examples/hosts b/examples/hosts new file mode 100644 index 0000000000..f58b26ed9e --- /dev/null +++ b/examples/hosts @@ -0,0 +1,37 @@ +# This is the default ansible 'hosts' file. +# +# It should live in /etc/ansible/hosts +# +# - Comments begin with the '#' character +# - Blank lines are ignored +# - Groups of hosts are delimited by [header] elements +# - You can enter hostnames or ip addresses +# - A hostname/ip can be a member of multiple groups +# +# Ex 1: Ungrouped hosts, specify before any group headers. +green.bikeshed.org +blue.bikeshed.org +red.bikeshed.org +bikeshed.org +bastion.secure.bikeshed.org +192.168.100.1 +192.168.100.10 + +# Ex 2: A collection of hosts belonging to the 'webservers' group +[webservers] +www01.bikeshed.org +www02.bikeshed.org +wheel.colors.com +192.168.1.100 +192.168.1.110 +# Your personal website also runs a webserver: +myserver.com + +# Ex 3: A collection of database servers in the 'dbservers' group +[dbservers] +db01.intranet.mydomain.net +10.25.1.56 +db02.intranet.mydomain.net +10.25.1.57 +# Perhaps you serve a db off your personal server too: +myserver.com |