Skip to content

Commit 0aa92d5

Browse files
rthorn-nrmbruzina
authored andcommitted
chore: Add CS windows
1 parent 5625242 commit 0aa92d5

File tree

1 file changed

+18
-14
lines changed
  • test/deploy/crowdstrike/roles/configure/tasks

1 file changed

+18
-14
lines changed
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
---
2-
- debug:
3-
msg: Deploy CrowdStrike Falcon Sensor
4-
5-
6-
- name: Install CrowdStrike Falcon Sensor
2+
- name: Install CrowdStrike Falcon Sensor (Linux)
3+
become: true
74
block:
85
- include_role:
96
name: newrelic.crowdstrike_provision.install_crowdstrike_falcon
10-
become: true
117
vars:
128
falcon_client_id: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_ID') }}"
139
falcon_client_secret: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_SECRET') }}"
1410
falcon_customer_id: "{{ lookup('env', 'CROWDSTRIKE_CUSTOMER_ID') }}"
1511
api_base_url: "https://api.laggar.gcw.crowdstrike.com"
12+
when: ansible_facts['os_family'] != 'Windows'
1613

17-
- name: Validate sensor is running
18-
shell: ps -e | grep falcon-sensor | grep -v grep | wc -l
19-
register: is_sensor_running
14+
- name: Install CrowdStrike Falcon Sensor (Windows)
2015
become: true
21-
22-
- name: Ensure Falcon is started
23-
ansible.builtin.fail:
24-
msg: falcon-sensor is not running
25-
when: is_sensor_running.stdout|int == 0
16+
become_method: runas
17+
become_user: SYSTEM
18+
block:
19+
- ansible.windows.win_file:
20+
path: C:\\Users\ansible\Downloads
21+
state: directory
22+
- include_role:
23+
name: newrelic.crowdstrike_provision.install_crowdstrike_falcon
24+
vars:
25+
falcon_client_id: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_ID') }}"
26+
falcon_client_secret: "{{ lookup('env', 'CROWDSTRIKE_CLIENT_SECRET') }}"
27+
falcon_customer_id: "{{ lookup('env', 'CROWDSTRIKE_CUSTOMER_ID') }}"
28+
api_base_url: "https://api.laggar.gcw.crowdstrike.com"
29+
when: ansible_facts['os_family'] == 'Windows'

0 commit comments

Comments
 (0)