Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tasks/pkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
msg: "The Datadog ansible role does not currently support Agent 5"
when: datadog_agent_major_version|int == 5

# This is a best-effort solution to avoid redownloading the msi when
# This is a best-effort solution to avoid redownloading the msi when
# It won't work with rc / beta builds, and won't work if the version to install
# is not pinned (as we don't know what version latest will be before downloading
# the package).
Expand Down Expand Up @@ -72,7 +72,7 @@
url: "{{ dd_download_url }}"
dest: '%TEMP%\ddagent.msi'
register: download_msi_result
when: not datadog_skip_windows_install
when: (not datadog_skip_windows_install) and (not ansible_check_mode)

- name: Create Binary directory root (if not default)
win_file:
Expand Down Expand Up @@ -106,4 +106,4 @@
win_file:
path: "{{ download_msi_result.dest }}"
state: absent
when: (not datadog_skip_windows_install) and (download_msi_result.status_code == 200)
when: (not datadog_skip_windows_install) and (not ansible_check_mode) and (download_msi_result.status_code == 200)