ansible-collections / community.windows

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

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

Open jborean93 opened 4 years ago

jborean93 commented 4 years ago

From @maxnasonov on Oct 22, 2019 11:45

SUMMARY

win_psmodule fails to install the prerequisites due to absence of AllowClobber

ISSUE TYPE
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 commented 3 years ago

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

saily commented 1 week ago

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