mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
Implemented support for Repository selection when installing module (#39909)
* Implemented support for Repository selection when installing module * Fixed AllowClobber check * Fixing missing AllowClobber argument * Fixed missing -Force switch * Test installing package from custom repo * Added custom repo variables * Fixed repo registration * Modified output check * Modified output check * Adding debug output * Modified update handling * Fixed output check * Added missing PowerShellGet 1.6.0 install * Added error handling * Modified test output check * Fixing output check * Fixing output filter * Implemented registering custom repo * Fixing registering custom repo * Fixing registering custom repo * Fixing registering custom repo * Tweaked module to shorten execution time * Removed installing PowerShellGet 1.6.0 * Re-added Install-NugetProvider
This commit is contained in:
parent
8deced3e04
commit
7d2012fdd7
4 changed files with 103 additions and 10 deletions
|
@ -30,10 +30,10 @@ options:
|
|||
default: 'no'
|
||||
repository:
|
||||
description:
|
||||
- Name of the custom repository to register.
|
||||
- Name of the custom repository to register or use.
|
||||
url:
|
||||
description:
|
||||
- URL of the custom repository.
|
||||
- URL of the custom repository to register.
|
||||
state:
|
||||
description:
|
||||
- If C(present) a new module is installed.
|
||||
|
@ -61,6 +61,12 @@ EXAMPLES = '''
|
|||
url: https://myrepo.com
|
||||
state: present
|
||||
|
||||
- name: Add a powershell module from a specific repository
|
||||
win_psmodule:
|
||||
name: PowershellModule
|
||||
repository: MyRepository
|
||||
state: present
|
||||
|
||||
- name: Remove a powershell module
|
||||
win_psmodule:
|
||||
name: PowershellModule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue