unistra / ansible-collection-glpi

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

Ansible collection for GLPI


Note: At the start this repository contains only a JSON inventory. The script has been moved to scripts/inventory <https://github.com/unistra/ansible-collection-glpi/tree/master/scripts/inventory>_ for legacy.

This collection contains:

Installation

Theses python modules must be installed on the controller:

There is a requirements file containing these dependencies so, if you don't care about clean integration to the system (using virtualenvs, distribution packages, ...):

.. code::

  $ sudo pip install -r requirements.txt

To install the collection:

.. code::

set collections directory to the current directory (default is ~/.ansible/collections)

$ export ANSIBLE_COLLECTIONS_PATH=$(pwd) $ ansible-galaxy collection install git+https://github.com/unistra/ansible-collection-glpi,1.1.1

With a requirements file:

.. code::

$ vim requirements.yml

collections: