mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
73438de862
* A basic start on an lxd dynamic inventory script The script is a fairly basic start on an lxd dynamic inventory script. Only tested on ubuntu 16.04 and currently only reports ipv4 container addresses. Improvements to come. * Updated formatting, indenting and python3 support Updated to work on python3 * Additional options read from the ini file Added options for connection and group to the ini file and modified to use these. Host returned is now the name by default. For non-lxd connection, the ansible_host var is populated with the ip address. * Additional options for group and connection * Minor change to re-run tests |
||
---|---|---|
.. | ||
inventory | ||
vault | ||
README.md |
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!