Skip to content

Commit

Permalink
WinPB: Abstract Version Number And Checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
steelhead31 committed Oct 10, 2024
1 parent 2c21ca4 commit 780f25d
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
###########################################
# Visual Studio 2022 Redists Installation #
###########################################
- name: Set Windows SDK version
set_fact:
wsdk_version: "14.40.33807_10.0.26100.0"
tags: MSVS_2022_REDIST

- name: Set Windows SDK checksum
set_fact:
wsdk_checksum: "a29ada15d941a7b2065e9a4273fd6b97df44d089ed2b9f860ded442f7fe69767"
tags: MSVS_2022_REDIST

- name: Test if VS 2022 Redists Are installed
win_stat:
path: 'c:\openjdk\devkit\vs2022_redist_14.40.33807_10.0.26100.0'
path: 'c:\openjdk\devkit\vs2022_redist_{{ wsdk_version }}'
register: vs2022sdk_installed
tags: MSVS_2022_REDIST

Expand All @@ -27,21 +36,21 @@
- name: Download Visual Studio 2022 Redists
win_get_url:
url: 'https://github.com/adoptium/devkit-binaries/releases/download/vs2022_redist_14.40.33807_10.0.26100.0/vs2022_redist_14.40.33807_10.0.26100.0.zip'
checksum: a29ada15d941a7b2065e9a4273fd6b97df44d089ed2b9f860ded442f7fe69767
checksum: "{{ wsdk_checksum }}"
checksum_algorithm: sha256
dest: 'c:\openjdk\devkit\vs2022_redist_14.40.33807_10.0.26100.0.zip'
dest: 'c:\openjdk\devkit\vs2022_redist_{{ wsdk_version }}.zip'
force: no
tags: MSVS_2022_REDIST

- name: Unzip Visual Studio 2022 Redists
win_unzip:
src: 'c:\openjdk\devkit\vs2022_redist_14.40.33807_10.0.26100.0.zip'
dest: 'c:\openjdk\devkit\vs2022_redist_14.40.33807_10.0.26100.0'
src: 'c:\openjdk\devkit\vs2022_redist_{{ wsdk_version }}.zip'
dest: 'c:\openjdk\devkit\vs2022_redist_{{ wsdk_version }}'
when: not vs2022sdk_installed.stat.exists
tags: MSVS_2022_REDIST

- name: Remove VS2022 SDK Download
win_file:
path: 'c:\openjdk\devkit\vs2022_redist_14.40.33807_10.0.26100.0.zip'
path: 'c:\openjdk\devkit\vs2022_redist_{{ wsdk_version }}.zip'
state: absent
tags: MSVS_2022_REDIST

0 comments on commit 780f25d

Please sign in to comment.