Windows Agent
Description
This playbook installs the Elastic Agent on Windows servers. It checks if the agent service is already installed and skips installation if found.
If not installed, it determines the appropriate enrollment token based on the automation category, downloads the agent zip file, extracts it, and installs the agent using the enrollment token. Temporary files are cleaned up after installation.
Credentials
- sys_ansible_windows
d09-es-pr-win-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