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

Win_Package uninstallation will exit without doing anything when path is pointing to a URL #667

Open
yangxinyun opened this issue Oct 15, 2024 · 0 comments

Comments

@yangxinyun
Copy link

SUMMARY

When win_package path argument is pointing to a URL and state argument is set to absent, this module will exit without doing uninstallation via downloading the URL specified software package and issue uninstall command as per the arguments

ISSUE TYPE
  • Bug Report
COMPONENT NAME

win_package

ANSIBLE VERSION
ansible-core 2.11
COLLECTION VERSION
Ansible.Windows version 2.5.0
CONFIGURATION
NA
OS / ENVIRONMENT

RedHat Linux

STEPS TO REPRODUCE
- name: Uninstall python 
  ansible.windows.win_package:
    path: https://www.python.org/ftp/python/3.11.0/python-3.11.0-amd64.exe
    arguments:
      - /uninstall
      - /quiet
     state: absent
EXPECTED RESULTS

python installed by https://www.python.org/ftp/python/3.11.0/python-3.11.0-amd64.exe is removed accordingly.

ACTUAL RESULTS
nothing happened, the module exit without any change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant