Retrieves the SentinelOne agent's status from each host in the play and stores it the s1_agent_info
fact for use by later tasks in the play. Information collected includes if the agent is installed, state of the service, uuid and if a reboot is required.
An endpoint with the SentinelOne agent installed and operational.
None
- s1_agent_common role: configures common variables for all roles in the collection
- ansible.windows
Retrieve information about the agent for all endpoints. The agent's state will be saved to the s1_agent_info
fact on each endpoint and can be used by subsequent tasks in the same play.
---
- name: Get the SentinelOne Agent's Status
hosts: all
tasks:
- name: Include the s1_agent_info role
ansible.builtin.include_role:
name: s1_agent_info
- name: Show SentinelOne Agent status
ansible.builtin.debug:
var: s1_agent_info
[Linux] => {
"s1_agent_info": {
"agent_enabled": true,
"anti_tamper_enabled": true,
"installed": true,
"mgmt_url": "https://<management fqdn>",
"product_id": "",
"reboot_required": false,
"service_status": "running",
"uuid": "23a908c8-f348-526b-ab16-1a4f5de40d82",
"version": "22.1.2.7"
}
}
[Windows] => {
"s1_agent_info": {
"agent_enabled": true,
"anti_tamper_enabled": true,
"installed": true,
"mgmt_url": "https://<management fqdn>",
"product_id": "{5A990909-DD22-48FA-BD8B-F564AFC81C4B}",
"reboot_required": false,
"service_status": "started",
"uuid": "f68fa59f4194463dbf6d2b9de3b6830b",
"version": "22.2.558"
}
}
[Linux] => {
"s1_agent_info": {
"agent_enabled": "",
"anti_tamper_enabled": "",
"installed": false,
"mgmt_url": "",
"product_id": "",
"reboot_required": "",
"service_status": "",
"uuid": "",
"version": ""
}
}
[Windows] => {
"s1_agent_info": {
"agent_enabled": "",
"anti_tamper_enabled": "",
"installed": false,
"mgmt_url": "",
"product_id": "",
"reboot_required": "",
"service_status": "",
"uuid": "",
"version": ""
}
}
GPL-3.0-or-later
Nathan Gerhart / SentinelOne