Skip to content

Latest commit

 

History

History
91 lines (64 loc) · 2.8 KB

File metadata and controls

91 lines (64 loc) · 2.8 KB

S1 Agent Uninstall

GitHub license Molecule CI

The s1_agent_uninstall role uninstalls the SentinelOne agent.

Requirements

A valid SentinelOne license, access to the SentinelOne Management Console and access to the SentinelOne installation packages are required.

Role Variables

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

Variables from dependencies

No additional variables must be defined. However, the s1_agent_common role defines common variables including working directories.

s1_agent_common

s1_tmp_linux: /tmp/s1_install
s1_tmp_windows: "{{ ansible_env.TEMP}}\\s1_install"
s1_validate_certs: true

Dependencies

Example Playbooks

Uninstall the SentinelOne agent using sentinelctl commands

---
- 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

Uninstall the SentinelOne agent using Linux OS commands

---
- 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.

License

GPL-3.0-or-later

Author Information

Nathan Gerhart / SentinelOne

Footnotes

  1. See the SentinelOne KnowledgeBase article Generating API Tokens.