Closed mathieumd closed 2 years ago
One of our GLPI is internal only, and we set it up with a self-signed TLS certificate.
It would be nice if you could add a configuration parameter glpi_verify_certs to disable certificate checking.
glpi_verify_certs
For now, I modified ansible_collections/unistra/glpi/plugins/inventory/inv.py at line 103 to add , verify_certs=False:
ansible_collections/unistra/glpi/plugins/inventory/inv.py
, verify_certs=False
self.glpi = GLPI(url=str(glpi_url), apptoken=str(glpi_apptoken), auth=str(glpi_auth), verify_certs=False)
I added the parameters to disable certificate checking (glpi_verify_certs) and to manage how authentication parameters are passed to the API (glpi_use_headers; cf unistra/python-glpi-api#5).
glpi_use_headers
Thank you!!
One of our GLPI is internal only, and we set it up with a self-signed TLS certificate.
It would be nice if you could add a configuration parameter
glpi_verify_certs
to disable certificate checking.For now, I modified
ansible_collections/unistra/glpi/plugins/inventory/inv.py
at line 103 to add, verify_certs=False
: