Skip to content

Commit 213fcf9

Browse files
committed
fix linting
1 parent 89b025f commit 213fcf9

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Create initialization file
3-
file:
3+
ansible.builtin.file:
44
path: /opt/sentinelone/.INITIALIZATION_COMPLETE
55
owner: root
66
group: root

tasks/install_debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Install package
3-
apt:
3+
ansible.builtin.apt:
44
deb: "/tmp/{{ sentinelone_filename | basename }}"
55
update_cache: true
66
become: true

tasks/install_redhat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Yep, we really need to use rpm directly as yum/dnf
33
# won't install packages without digests
44
- name: Install package
5-
command: "rpm -ivh --nodigest /tmp/{{ sentinelone_filename | basename }}"
5+
ansible.builtin.command: "rpm -ivh --nodigest /tmp/{{ sentinelone_filename | basename }}"
66
register: rpmout
77
changed_when:
88
- "'Updating / installing' in rpmout.stdout"

tasks/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
---
22
- name: Include distribution-specific variables
3-
include_vars: "{{ ansible_os_family | regex_replace(' ', '_') | lower }}.yml"
3+
ansible.builtin.include_vars: "{{ ansible_os_family | regex_replace(' ', '_') | lower }}.yml"
44

55
- name: Download installation package
6-
get_url:
6+
ansible.builtin.get_url:
77
url: "{{ sentinelone_filename }}"
88
dest: "/tmp/{{ sentinelone_filename | basename }}"
99
mode: 0644
1010
when: "'http' in sentinelone_filename"
1111

1212
- name: Copy installation package
13-
copy:
13+
ansible.builtin.copy:
1414
src: "{{ sentinelone_filename }}"
1515
dest: "/tmp/{{ sentinelone_filename | basename }}"
16+
mode: '0644'
1617
when: "'http' not in sentinelone_filename"
1718

1819

1920
- name: Include installation tasks
20-
include_tasks: "install_{{ ansible_os_family | regex_replace(' ', '_') | lower }}.yml"
21+
ansible.builtin.include_tasks: "install_{{ ansible_os_family | regex_replace(' ', '_') | lower }}.yml"
2122

2223
- name: Set Group/Site token
23-
command: "/opt/sentinelone/bin/sentinelctl management token set {{ sentinelone_token }}"
24+
ansible.builtin.command: "/opt/sentinelone/bin/sentinelctl management token set {{ sentinelone_token }}"
2425
args:
2526
creates: /opt/sentinelone/.INITIALIZATION_COMPLETE
2627
become: true
2728
notify: Create initialization file
2829
when: sentinelone_token is defined and sentinelone_token != ''
2930

3031
- name: Start agent
31-
command: /opt/sentinelone/bin/sentinelctl control start
32+
ansible.builtin.command: /opt/sentinelone/bin/sentinelctl control start
3233
become: true

0 commit comments

Comments
 (0)