When I try to install Visual studio 17.2 through ansible using the win_chocolatey module, it instead installs 17.8 Here is my ansible step. The version is intentionally 117 because thats how its listed in the chocolatey package.
- name: Install Visual Studio
win_chocolatey:
name: visualstudio2022enterprise
state: downgrade
pinned: true
version: '117.2.2.0'
package_params: --channelUri https://aka.ms/vs/17/release.ltsc.17.2/channel
This works with the command choco install visualstudio2022enterprise –channelUri https://aka.ms/vs/17/release.ltsc.17.2/channel
that command does install the correct version.
5