Skip to content

Ansible Role linuxfabrik.lfops.glpi_agent

This role installs and configures the GLPI Agent.

Mandatory Requirements

If you use the "GLPI Agent" Playbook, this is automatically done for you.

Tags

glpi_agent

  • Installs and configure GLPI Agent.
  • Triggers: glpi-agent.service restart.

glpi_agent:configure

  • Deploys the configuration file.
  • Triggers: glpi-agent.service restart.

glpi_agent:state

  • Manages the state of the systemd service.
  • Triggers: none.

Mandatory Role Variables

glpi_agent__conf_server

  • Specifies the server to use both as a controller for the agent, and as a recipient for task execution output.
  • Type: String.
  • Default: none

Example:

# mandatory
glpi_agent__conf_server: 'https://glpi.example.com'

Optional Role Variables

glpi_agent__conf_local

  • Write the results of the tasks execution locally.
  • Type: String.
  • Default: '/tmp'

glpi_agent__conf_no_ssl_check

  • Ignore self-signed certificates of the server.
  • Type: Bool.
  • Default: false

glpi_agent__conf_ssl_fingerprint

  • Specifies the fingerprint of the ssl server certificate to trust. The fingerprint to use can be retrieved in agent log by temporarily enabling glpi_agent__conf_no_ssl_check option.
  • Type: String.
  • Default: unset

glpi_agent__service_enabled

  • Enables or disables the service, analogous to systemctl enable/disable --now.
  • Type: Bool.
  • Default: true

glpi_agent__version

  • The version of blocky to install. Possible options: 'latest', or any from https://github.com/glpi-project/glpi-agent/releases.
  • Type: String.
  • Default: 'latest'

Example:

# optional
glpi_agent__conf_local: '/tmp'
glpi_agent__conf_no_ssl_check: false
glpi_agent__conf_ssl_fingerprint: 'sha256$...'
glpi_agent__service_enabled: true
glpi_agent__version: 'latest'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich