ansible-collections / community.windows

Windows community collection for Ansible
https://galaxy.ansible.com/community/windows
GNU General Public License v3.0
199 stars 153 forks source link

Fix scoop idempotency and Chocolatey issues #448

Closed jborean93 closed 1 year ago

jborean93 commented 1 year ago
SUMMARY

Fixes an idempotency issue where scoop export now outputs JSON and not the string value it had before. This was a change in v0.2.3 through https://github.com/ScoopInstaller/Scoop/commit/c4d1b9c22f943a810bed7f9f74d7d4d5c42d9a74. The change tries to parse by JSON used by newer versions with the fallback to the old code if it's not JSON.

Also pinned chocolatey.chocolatey to 1.2.0 for compatibility with PowerShell 3, and 4 - https://github.com/chocolatey/chocolatey-ansible/issues/96. This can be removed if Chocolatey update their codebase and bring back compatibility to these versions or we drop Server 2012 and 2012 R2.

ISSUE TYPE
COMPONENT NAME

win_scoop