Skip to content

Commit

Permalink
falcon_install - add the ability to install from an url link for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Harish Segar committed Jun 30, 2023
1 parent 7db5c86 commit e352dfb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,16 @@ releases:
- 3.2.35.yml
- gpg-key.yml
release_date: '2023-06-30'
3.2.36:
changes:
bugfixes:
- falcon_install - add the ability to install from an URL for windows (https://github.com/CrowdStrike/ansible_collection_falcon/pull/363)
release_summary: '| Release Date: 2023-06-30
| `Release Notes: <https://github.com/CrowdStrike/ansible_collection_falcon/releases/tag/3.2.36>`__
'
fragments:
- 3.2.36.yml
- url_ability_for_windows.yml
release_date: '2023-06-30'
8 changes: 8 additions & 0 deletions roles/falcon_install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
- ansible.builtin.include_tasks: file.yml
# noqa name[missing]

- name: Windows URL block
when:
- falcon_install_method == "url"
- ansible_facts['os_family'] == "Windows"
block:
- ansible.builtin.include_tasks: win_url.yml
# noqa name[missing]

- name: Windows API block
when:
- falcon_install_method == "api"
Expand Down
18 changes: 18 additions & 0 deletions roles/falcon_install/tasks/win_url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Tasks for Installing CrowdStrike's Falcon Sensor via URL
- name: CrowdStrike Falcon | Downloading Installation Package from URL (Windows)
ansible.windows.win_get_url:
url: "{{ falcon_download_url }}"
dest: "{{ falcon_windows_tmp_dir }}\\falcon-sensor.exe"
url_username: "{{ falcon_download_url_username | default(omit) }}"
url_password: "{{ falcon_download_url_password | default(omit) }}"
when:
- falcon_download_url
- falcon_windows_tmp_dir
register: falcon_sensor_download
retries: "{{ falcon_retries }}"
delay: "{{ falcon_delay }}"
until: falcon_sensor_download is success

- name: CrowdStrike Falcon | Set full file download path
ansible.builtin.set_fact:
falcon_sensor_pkg: "{{ falcon_sensor_download.dest }}"

0 comments on commit e352dfb

Please sign in to comment.