ansible.windows icon indicating copy to clipboard operation
ansible.windows copied to clipboard

win_package: support checksum verification

Open mathstuf opened this issue 3 months ago • 2 comments

SUMMARY

win_package should support checksum verification of network downloads

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

ansible.windows.win_package

ADDITIONAL INFORMATION

Verify that the downloaded file is the one expected before execution.

- name: Install foobar
  ansible.windows.win_package:
    path: '{{ some_network_url }}'
    checksum: 'sha256sum:deadbeef…'

mathstuf avatar Mar 27 '24 18:03 mathstuf

This seems like a simple thing to implement. I'm not sure whether to split the algorithm selection into another option or to have the prefix like you've specified here or not though.

jborean93 avatar Apr 01 '24 19:04 jborean93

The Posix actions seem to use prefixes but Windows-specific actions seem to prefer split. I certainly prefer the former as it is one less variable to juggle, but consistency might be more valuable…

mathstuf avatar Apr 01 '24 20:04 mathstuf