Skip to content

Commit

Permalink
fix(falcon_install): update windows to use falcon_windows_tmp_dir var…
Browse files Browse the repository at this point in the history
…iable
  • Loading branch information
carlosmmatos committed Oct 22, 2024
1 parent 6e564c7 commit 1bdbbb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion roles/falcon_install/tasks/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
- name: CrowdStrike Falcon | Copy Sensor Installation Package to remote host (windows)
ansible.windows.win_copy:
src: "{{ falcon_sensor_download.path }}"
dest: "{{ falcon_install_win_temp_directory }}"
dest: "{{ falcon_windows_tmp_dir }}"
changed_when: false
register: win_falcon_sensor_copied
when: ansible_os_family == "Windows"
Expand Down
2 changes: 0 additions & 2 deletions roles/falcon_install/tasks/preinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@
state: directory
when:
- ansible_facts['os_family'] == "Windows"
- falcon_windows_tmp_dir is defined
register: falcon_install_win_temp_directory
changed_when: no

- name: CrowdStrike Falcon | Verify Falcon is not already installed (macOS)
Expand Down
4 changes: 2 additions & 2 deletions roles/falcon_install/tasks/win_url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
- name: CrowdStrike Falcon | Downloading Installation Package from URL (Windows)
ansible.windows.win_get_url:
url: "{{ falcon_download_url }}"
dest: "{{ falcon_install_win_temp_directory }}"
dest: "{{ falcon_windows_tmp_dir }}"
url_username: "{{ falcon_download_url_username | default(omit) }}"
url_password: "{{ falcon_download_url_password | default(omit) }}"
when:
- falcon_download_url
- falcon_install_win_temp_directory
- falcon_windows_tmp_dir
register: falcon_sensor_download
retries: "{{ falcon_retries }}"
delay: "{{ falcon_delay }}"
Expand Down

0 comments on commit 1bdbbb8

Please sign in to comment.