https://github.com/unistra/ansible-collection-glpi
Ansible dynamic inventory for GLPI.
https://github.com/unistra/ansible-collection-glpi
ansible glpi inventory
Last synced: about 1 year ago
JSON representation
Ansible dynamic inventory for GLPI.
- Host: GitHub
- URL: https://github.com/unistra/ansible-collection-glpi
- Owner: unistra
- License: gpl-3.0
- Created: 2019-10-09T19:06:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-17T19:26:59.000Z (over 3 years ago)
- Last Synced: 2025-04-13T14:08:17.778Z (about 1 year ago)
- Topics: ansible, glpi, inventory
- Language: Python
- Size: 43.9 KB
- Stars: 10
- Watchers: 8
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
***************************
Ansible collection for GLPI
***************************
**Note:** At the start this repository contains only a JSON inventory. The script has been
moved to `scripts/inventory `_ for legacy.
This collection contains:
* a dynamic inventory (see `inventory README `_)
* a module for interacting with GLPI (see `modules README `__)
Installation
============
Theses python modules must be installed on the controller:
* `pyyaml `_ for manipulating YAML files
* `yamlloader `_ for keeping configuration
order
* `glpi-api `_ for interacting with GLPI
REST API
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:
- name: https://github.com/unistra/ansible-collection-glpi
type: git
version: 1.1.1
$ ansible-galaxy install -r requirements.yml