unistra / ansible-collection-glpi

Ansible dynamic inventory for GLPI.
GNU General Public License v3.0
9 stars 5 forks source link

Use a configuration file for connection parameters #1

Closed fmenabe closed 3 years ago

fmenabe commented 5 years ago

Parameters for connecting to GLPI are managed by the CLI, using some environment variables as default values of theses options.

Usage of dynamic inventories with Ansible commands (ansible, ansible-playbook) does not allow to pass option to the inventory script and environment variables needs to be defined.

It may be preferable to use a (YAML?) configuration file for defining connection parameters. As there is already a configuration file for groups configuration, should theses files be merged?

fmenabe commented 3 years ago

This was done when migrating to a collection.

Environments variables can also be used and vaulted variables are working.