Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 702 Bytes

File metadata and controls

26 lines (22 loc) · 702 Bytes

GLPI modules

This module is minimal and was quickly done without much thoughts!

Exemple:

- name: Update GLPI informations of current host
  delegate_to: localhost
  unistra.glpi.api:
    url: "{{ lookup('env', 'ANSIBLE_GLPI_URL') }}"
    apptoken: "{{ lookup('env', 'ANSIBLE_GLPI_APPTOKEN') }}"
    auth:
      usertoken: "{{ lookup('env', 'ANSIBLE_GLPI_USERTOKEN') }}"
    itemtype: Computer
    criteria:
      80: 'Unistra > DNUM'
      1: "{{ inventory_hostname_short }}"
    values:
      states_id: 1      # Running
      entities_id: 1    # Unistra > DNUM
    state: present
    ignore_actions: [add, delete] # update only