New in version 2.8.
Parameter | Choices/Defaults | Comments |
---|---|---|
installation_policy string |
| Sets the InstallationPolicy of a repository.Will default to trusted when creating a new repository. |
name string / required | Name of the repository to work with. | |
source string | Specifies the URI for discovering and installing modules from this repository. A URI can be a NuGet server feed (most common situation), HTTP, HTTPS, FTP or file location. | |
state string |
| If present a new repository is added or updated.If absent a repository is removed. |
Note
win_psrepository
to re-register (add) removed PSGallery, use the command Register-PSRepository -Default
instead.See also
--- - name: Ensure the required NuGet package provider version is installed win_shell: Find-PackageProvider -Name Nuget -ForceBootstrap -IncludeDependencies -Force - name: Add a PowerShell module and register a repository win_psrepository: name: MyRepository source: https://myrepo.com state: present - name: Remove a PowerShell repository win_psrepository: name: MyRepository state: absent
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/win_psrepository_module.html