.. _community.windows.win_psmodule_module:
******************************
community.windows.win_psmodule
******************************
**Adds or removes a Windows PowerShell module**
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module helps to install Windows PowerShell modules and register custom modules repository on Windows-based systems.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
allow_clobber
boolean
|
|
If yes allows install modules that contains commands those have the same names as commands that already exists.
|
|
allow_prerelease
boolean
|
|
If yes installs modules marked as prereleases.
It doesn't work with the parameters minimum_version and/or maximum_version.
It doesn't work with the state set to absent.
|
|
maximum_version
string
|
|
The maximum version of the PowerShell module that has to be installed.
|
|
minimum_version
string
|
|
The minimum version of the PowerShell module that has to be installed.
|
|
name
string
/ required
|
|
Name of the Windows PowerShell module that has to be installed.
|
|
repository
string
|
|
Name of the custom repository to use.
|
|
required_version
string
|
|
The exact version of the PowerShell module that has to be installed.
|
|
skip_publisher_check
boolean
|
|
If yes, allows you to install a different version of a module that already exists on your computer in the case when a different one is not digitally signed by a trusted publisher and the newest existing module is digitally signed by a trusted publisher.
|
|
state
string
|
Choices:
- absent
- latest
present ←
|
If present a new module is installed.
If absent a module is removed.
If latest a module is updated to the newest version.
|
|
url
string
|
|
URL of the custom repository to register.
DEPRECATED, will be removed in a major release after 2021-07-01, please use the community.windows.win_psrepository module instead.
|