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_psmodule fails to install the prerequisites due to absence of AllowClobber #42

Open
jborean93 opened this issue Mar 11, 2020 · 2 comments

Comments

@jborean93
Copy link
Collaborator

From @maxnasonov on Oct 22, 2019 11:45

SUMMARY

win_psmodule fails to install the prerequisites due to absence of AllowClobber

ISSUE TYPE
  • Bug Report
COMPONENT NAME

win_psmodule

ANSIBLE VERSION
ansible 2.8.6
  config file = None
  configured module search path = [u'/Users/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Library/Python/2.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.10 (default, Feb 22 2019, 21:55:15) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)]
CONFIGURATION
OS / ENVIRONMENT

Windows Server 2019 Datacenter

STEPS TO REPRODUCE
  - name: Add xExchange DSC module
    win_psmodule:
      name: xExchange
      repository: PSGallery
      required_version: 1.29.0.0
      state: present
EXPECTED RESULTS

Successful install of xExchange module

ACTUAL RESULTS
The following commands are already available on this system:'Find-Package,Install-Package,Uninstall-Package'. This module 'PackageManagement' may override the existing commands. If you still want to install this module 'PackageManagement', use -AllowClobber parameter.

Copied from original issue: ansible/ansible#63780

@dterhorst93
Copy link
Contributor

I am also experiencing this issue. running on ansible 2.9.18.
Is there a known workaround for this issue?

dterhorst93 added a commit to dterhorst93/community.windows that referenced this issue Mar 30, 2021
ansible-collections#42  win_psmodule fails to install the prerequisites due to absence of AllowClobber
jborean93 added a commit that referenced this issue May 8, 2021
* Fix failing installation of prerequisites

#42  win_psmodule fails to install the prerequisites due to absence of AllowClobber

* Add changelog fragment and optional set

Co-authored-by: dabhorst <[email protected]>
Co-authored-by: Jordan Borean <[email protected]>
@saily
Copy link

saily commented Oct 24, 2024

@jborean93 I think this has already been closed by #217 but somehow left open.

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

3 participants