Skip to content

Linux Agent

Go to Automation

View in GitLab

Description

This playbook installs the Elastic Agent on Linux servers. It determines the agent version to use, checks if the agent is already installed, and installs it if necessary.
The playbook also handles enrollment tokens for different automation categories, downloads the agent tarball, extracts it, and installs the agent with the appropriate enrollment token. It ensures the agent is properly configured and cleans up temporary files after installation.

Credentials

  • sys_ansible_local
  • d09-es-pr-lin-agent-enrollment_tokens.yml (vault file for enrollment tokens)

Input

Variable Description
target Target host for deployment.
elastic_agent_default_version Default version of the Elastic Agent.
elastic_agent_version Specific version of the Elastic Agent to install.

Output

None

Dependencies