The s1_agent_uninstall
role uninstalls the SentinelOne agent.
A valid SentinelOne license, access to the SentinelOne Management Console and access to the SentinelOne installation packages are required.
s1_management_console: https://<management fqdn>
This is mandatory and is the URL to your SentinelOne management console.
s1_api_token:
This is mandatory and is the API token1 associated with the user which will running the role.
s1_forced_remove: false
No additional variables must be defined. However, the s1_agent_common role defines common variables including working directories.
s1_tmp_linux: /tmp/s1_install
s1_tmp_windows: "{{ ansible_env.TEMP}}\\s1_install"
s1_validate_certs: true
- s1_agent_info role: Gathers basic information about the SentinelOne agent.
- s1_mgmt_get_passphrase role: retrieves the agent's unique passphrase from the management console. Note: this dependency does not exist for Linux agents when
s1_forced_remove
istrue
. - s1_agent_common role: configures common variables for all roles in the collection
- ansible.windows
- ansible.posix
---
- name: Uninstall the SentinelOne agent
hosts: all
vars:
s1_management_console: https://<management fqdn>
s1_api_token: REDACTED
tasks:
- name: Include s1_agent_uninstall
ansible.builtin.include_role:
name: s1_agent_uninstall
---
- name: Uninstall the SentinelOne agent
hosts: all
vars:
s1_forced_remove: true
tasks:
- name: Include s1_agent_uninstall
ansible.builtin.include_role:
name: s1_agent_uninstall
This is mostly useful when cleaning up a corrupted install.
GPL-3.0-or-later
Nathan Gerhart / SentinelOne
Footnotes
-
See the SentinelOne KnowledgeBase article Generating API Tokens. ↩