Added usage example

This commit is contained in:
C.M.R. Wouts 2018-04-13 08:16:55 +02:00
parent 1901847443
commit 794e625f57
1 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,14 @@ inventory --list | --host <hostname>
--list: return YAML compatible JSON inventory of all hosts
--host <hostname>: return YAML compatible JSON with all variables defined for the given host
=head1 DESCRIPTION
This is a completely useless example of a dynamic inventory, since it just returns the
included ini-style inventory, in JSON (or YAML). To test it do:
$ ansible -i <this file> --list-hosts <ansible host pattern: eg. all>
=cut
@ -93,8 +101,8 @@ __DATA__
# Each group represents a role or a location
# ie.
[default]
localhost ansible_connection=local ansible_become=False
[default]
pallas.ai.rug.nl ansible_become=true ansible_ssh_user=remco
ai17873.ai.rug.nl ansible_become=true ansible_ssh_user=rwouts
129.125.5.[1:255] ansible_become=true
@ -126,6 +134,7 @@ lwp
[groningen:vars]
timezone=Europe/Amsterdam
#Nijenbrg
[5116.315]
129.125.28.[145:166]
@ -283,4 +292,3 @@ turing18.housing.rug.nl
mail.ai.rug.nl
imap.ai.rug.nl
www.ai.rug.nl