ansible/contrib
Alex Trevino 413dfa7273 [cloud][aws] Use with statement for file rw in EC2 dynamic inventory (#21390)
* Use with statement when doing rw on files

* Deserialize file-like object directly instead of a string

For python 2/3 compatibility reasons, per PR feedback.
2017-02-16 09:41:55 -05:00
..
inventory [cloud][aws] Use with statement for file rw in EC2 dynamic inventory (#21390) 2017-02-16 09:41:55 -05:00
vault Support multiple vault passwords in keyring script 2017-02-08 16:05:36 -05:00
README.md Formatting (#19353) 2016-12-14 18:26:17 +00:00

inventory

Inventory scripts allow you to store your hosts, groups, and variables in any way you like. Examples include discovering inventory from EC2 or pulling it from Cobbler. These could also be used to interface with LDAP or database.

chmod +x an inventory plugin and either name it /etc/ansible/hosts or use ansible -i /path/to/inventory/script. You might also need to copy a configuration file with the same name and/or set environment variables, the scripts or configuration files have more details.

contributions welcome

Send in pull requests to add plugins of your own. The sky is the limit!