Skip to content

Play exits with error: commands are already available on this system #1

@dry4ng

Description

@dry4ng

As I'm trying to run this role against freshly provisioned Google cloud image of Windows Server 2019 Core, it exits with the following error:

TASK [jimbo8098.windows_docker_role : Ensure PowerShellGet is installed] *********************************************
fatal: [myhostname]: FAILED! => {"changed": false, "msg": "Problems adding a prerequisite module PowerShellGet 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.", "nuget_changed": false, "output": "", "repository_changed": false}

vars:

reboots_allowed: true
docker:
  version: 18.03

Ansible 2.10.6
Windows Server 2019 1909 DC Core

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions