ansible-collections / community.windows

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

Fix scoop idempotency and Chocolatey issues #448

Closed jborean93 closed 2 years ago

jborean93 commented 2 years 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