Parameter |
Choices/Defaults |
Comments |
allow_empty_checksums
bool
(added in 2.2) |
|
Allow empty checksums to be used.
|
allow_prerelease
bool
(added in 2.6) |
|
Allow install of prerelease packages.
If state state is latest the highest prerelease package will be installed.
|
force
bool |
|
Forces install of the package (even if it already exists).
Using force will cause ansible to always report that a change was made.
|
ignore_checksums
bool
(added in 2.2) |
|
Ignore checksums altogether.
|
ignore_dependencies
bool
(added in 2.1) |
|
Ignore dependencies, only install/upgrade the package itself.
|
install_args
(added in 2.1) |
|
Arguments to pass to the native installer.
|
name
required |
|
Name of the package to be installed.
This must be a single package name.
|
params
(added in 2.1) |
|
Parameters to pass to the package
|
proxy_password
(added in 2.4) |
|
Proxy password used to install chocolatey and the package.
See notes in proxy_username when dealing with double quotes in a password.
|
proxy_url
(added in 2.4) |
|
Proxy url used to install chocolatey and the package.
|
proxy_username
(added in 2.4) |
|
Proxy username used to install chocolatey and the package.
When dealing with a username with double quote characters " , they need to be escaped with \ beforehand. See examples for more details.
|
skip_scripts
bool
(added in 2.4) |
|
Do not run chocolateyInstall.ps1 or chocolateyUninstall.ps1 scripts.
|
source
|
|
Specify source rather than using default chocolatey repository.
|
state
|
Choices:
- absent
- downgrade
- latest
present ←
- reinstalled
|
State of the package on the system.
|
timeout
(added in 2.3) |
Default:
2700
|
The time to allow chocolatey to finish before timing out.
aliases: execution_timeout
|
version
|
|
Specific version of the package to be installed.
Ignored when state is set to absent .
|