Sva.sentinelone
This collection provides several unofficial ansible modules and roles to use with SentinelOne management consoles
Install / Use
/learn @svalabs/Sva.sentineloneREADME
Ansible Collection - sva.sentinelone
Description
This is the unofficial SentinelOne Collection provided by SVA
This collection is a community project and is neither provided nor supported by SentinelOne itself.
It provides several modules which helps to configure and manage SentinelOne Management Consoles.
Included content
-
Modules:
-
Roles:
Requirements
Ansible
- ansible >= 8 or ansible-core >= 2.15 (Lower versions may work but they have not been tested)
Python
- Python >= 3.9 (Ansible control node requirement)
External
This collection needs the following Python modules:
- deepdiff >= 5.6.0 (Lower versions may work but they have not been tested)
Tested with Ansible and the following Python versions
Tested Ansible versions:
- 2.15
- 2.16
- 2.17
Tested Python versions:
- 3.9
- 3.10
- 3.11
- 3.12
Using this collection
Installing the collection from Ansible Galaxy
Before using this collection, you need to install it with the Ansible Galaxy command-line tool:
ansible-galaxy collection install sva.sentinelone
You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:
---
collections:
- name: sva.sentinelone
Note that if you install the collection from Ansible Galaxy, it will not be upgraded automatically when you upgrade the ansible package. To upgrade the collection to the latest available version, run the following command:
ansible-galaxy collection install sva.sentinelone --upgrade
You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax to install version 1.0.0:
ansible-galaxy collection install sva.sentinelone:==1.0.0
See Ansible Using collections for more details.
Documentation
User documentation
The module documentation can be found here.
The role documentation can be found here.
Changelog
v2.0.3: Bugfix release. Fixed OpenSUSE compatibility
v2.0.2: Bugfix release. Fixed idempotency bug in install_agent role and reverted changes from v2.0.1
v2.0.1: Bugfix release. Fixed a bug where the install_agent role fails on local tasks if "ansible_connection" var is set in playbook.
v2.0.0:
- Added new sentinelone_agent_info module and @stdevels sentinelone_client role as sentinelone_client_legacy.
- install_agent role: Added configurable retries and delays in the step which checks if the agent appears in the management console.
- Breaking Changes: The download_agent modules
stateparameter is no longer available. If you usedstate: infoplease use the new agent_info module instead.stateparameter has been removed from download_agent module.
v1.1.1: Bugfix release. Changed privilege escalation behaviour
v1.1.0: Added new sentinelone_download_agent module and install_agent role
v1.0.3: Increased request timeout and implemented error handling for requests that timed out
v1.0.2: Added detailed error message to module output if an API call fails
v1.0.1: Bugfix release
v1.0.0: Initial release
Detailed Changelog can be found at CHANGELOG
Todo (help is welcome)
- [ ] Make the modules usable on account scope
- [ ] Unit tests needs to be written
Licensing
The SVA SentinelOne collection is licensed under the GNU General Public License v3.0+. See LICENSE for the full license text.
