Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playbook: update to latest WDK #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
33 changes: 2 additions & 31 deletions templates/windows/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
hosts: default
vars:
vsix_installer: "{{ ansible_env['ProgramFiles'] }}\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VSIXInstaller.exe"
wdk_vsix_dir: "{{ ansible_env['ProgramFiles(x86)'] }}\\Windows Kits\\10\\Vsix\\VS2022\\10.0.22621.0"
wdk_vsix_dir: "{{ ansible_env['ProgramFiles(x86)'] }}\\Windows Kits\\10\\Vsix\\VS2022\\10.0.26100.0\\amd64"
tasks:
# This should be set before running the win_inet_proxy module
- name: Configure IE proxy settings to apply to all users
Expand Down Expand Up @@ -79,38 +79,9 @@
# https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2022&preserve-view=true
- name: Install Visual Studio community and compiler
win_command:
# cmd: vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22000
cmd: vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64
cmd: vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Component.Microsoft.Windows.DriverKit
args:
chdir: "{{ ansible_facts['env']['TEMP'] }}"

- name: Download latest SDK
win_get_url:
url: https://go.microsoft.com/fwlink/?linkid=2237387
dest: "{{ ansible_facts['env']['TEMP'] }}\\sdk_setup.exe"

- name: Install latest SDK
win_command:
cmd: sdk_setup.exe /q /norestart
args:
chdir: "{{ ansible_facts['env']['TEMP'] }}"

- name: Download latest WDK
win_get_url:
url: https://go.microsoft.com/fwlink/?linkid=2196230
dest: "{{ ansible_facts['env']['TEMP'] }}\\wdk_setup.exe"

- name: Install WDK
win_command:
cmd: wdk_setup.exe /q /norestart
args:
chdir: "{{ ansible_facts['env']['TEMP'] }}"

- name: install WDK VSIX extension
win_command:
cmd: "{{ vsix_installer | ansible.windows.quote }} /quiet /admin /logFile:C:\\wdk_vsix.log WDK.vsix"
args:
chdir: "{{ wdk_vsix_dir }}"

- name: Enable Testsigning
win_command: Bcdedit.exe -set TESTSIGNING ON