Skip to content

Commit d4b8a83

Browse files
Varrkan82stdevel
andauthored
Add ability to disable GPG check. Add ability to declare customer_id (#9)
* Add ability to disable GPG check. Add ability to declare customer_id * Rename variable * Change customer_id item * Update main.yml Fix typo --------- Co-authored-by: Christian Stankowic <[email protected]>
1 parent 41b25c9 commit d4b8a83

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
sentinelone_client_token: ''
33
sentinelone_client_gpgkey: ''
44
sentinelone_client_force_new_token: false
5+
sentinelone_client_customer_id: ''
6+
zypper_disable_gpg_check: 'false'

tasks/install_suse.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
- name: Install package
2424
community.general.zypper:
2525
name: "/tmp/{{ sentinelone_client_filename | basename }}"
26+
disable_gpg_check: {{ zypper_disable_gpg_check }}
2627
become: true
2728
when: sentinelone_client_digest is not defined

tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
notify: Create initialization file
5555
when: sentinelone_client_token is defined and sentinelone_client_token != ''
5656

57+
- name: Set SentinelOne customer_id
58+
ansible.builtin.command: "/opt/sentinelone/bin/sentinelctl management customer_id set {{ sentinelone_client_customer_id }}"
59+
register: customer_id_output
60+
changed_when: "'customer id successfully set' in customer_id_output.stdout|lower"
61+
become: true
62+
when: sentinelone_client_customer_id | length > 0
63+
5764
- name: Start agent
5865
ansible.builtin.command: /opt/sentinelone/bin/sentinelctl control start
5966
register: start_output

0 commit comments

Comments
 (0)