Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
This repository was archived by the owner on May 16, 2025. It is now read-only.

Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet' #27

@patsevanton

Description

@patsevanton

ansible --version

ansible 2.6.17

packer build windows-ansible.json

yandex: output will be in this color.

==> yandex: Creating temporary ssh key for instance...
==> yandex: Using as source image: fd85s1nlcavgdpc16hj3 (name: "windows-2016-gvlk-1556619485", family: "windows-2016-gvlk")
==> yandex: Use provided subnet id b0c8pliu8o98kgtui3r3
==> yandex: Creating instance...
==> yandex: Waiting for instance with id ef333e47f9sh2fdfqd0a to become active...
    yandex: Detected instance IP: 178.154.234.144
==> yandex: Using winrm communicator to connect: 178.154.234.144
==> yandex: Waiting for WinRM to become available...
==> yandex: #< CLIXML
    yandex: WinRM connected.
==> yandex: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> yandex: Connected to WinRM!
==> yandex: Uploading /home/user/examples/packer-ansible-windows/setup_complete/ => C:\Windows\Setup\Scripts\
==> yandex: Provisioning with Ansible...
    yandex: Setting up proxy adapter for Ansible....
==> yandex: Executing Ansible: ansible-playbook -e packer_build_name="yandex" -e packer_builder_type=yandex --connection=packer --extra-vars ansible_shell_type=powershell ansible_shell_executable=None ansible_python_interpreter=/usr/bin/python -e ansible_ssh_private_key_file=/tmp/ansible-key064885685 -i /tmp/packer-provisioner-ansible611103632 /home/user/examples/packer-ansible-windows/ansible/exmb_prereq.yml
    yandex: /home/user/.local/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in a future release.
    yandex:   from cryptography.exceptions import InvalidSignature
    yandex:
    yandex: PLAY [all] *********************************************************************
    yandex:
    yandex: TASK [Gathering Facts] *********************************************************
    yandex: ok: [default]
    yandex:
    yandex: TASK [download required modules] ***********************************************
    yandex: failed: [default] (item=xActiveDirectory) => {"changed": false, "item": "xActiveDirectory", "msg": "Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.", "nuget_changed": false, "output": "", "repository_changed": false}
    yandex: failed: [default] (item=xExchange) => {"changed": false, "item": "xExchange", "msg": "Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.", "nuget_changed": false, "output": "", "repository_changed": false}
    yandex: failed: [default] (item=xPSDesiredStateConfiguration) => {"changed": false, "item": "xPSDesiredStateConfiguration", "msg": "Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.", "nuget_changed": false, "output": "", "repository_changed": false}
    yandex: failed: [default] (item=NetworkingDsc) => {"changed": false, "item": "NetworkingDsc", "msg": "Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.", "nuget_changed": false, "output": "", "repository_changed": false}
    yandex: failed: [default] (item=ComputerManagementDsc) => {"changed": false, "item": "ComputerManagementDsc", "msg": "Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.", "nuget_changed": false, "output": "", "repository_changed": false}
    yandex: failed: [default] (item=StorageDsc) => {"changed": false, "item": "StorageDsc", "msg": "Problems adding package provider: No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.", "nuget_changed": false, "output": "", "repository_changed": false}
    yandex:     to retry, use: --limit @/home/user/examples/packer-ansible-windows/ansible/exmb_prereq.retry
    yandex:
    yandex: PLAY RECAP *********************************************************************
    yandex: default                    : ok=1    changed=0    unreachable=0    failed=1
    yandex:
==> yandex: Provisioning step had errors: Running the cleanup provisioner, if present...
==> yandex: Destroying instance...
    yandex: Instance has been destroyed!
==> yandex: Destroying boot disk...
    yandex: Disk has been deleted!
Build 'yandex' errored after 7 minutes 57 seconds: Error executing Ansible: Non-zero exit status: exit status 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions