New in version 1.9.
parameter | required | default | choices | comments |
---|---|---|---|---|
allow_empty_checksums (added in 2.2) |
no | Allow empty checksums to be used. | ||
force |
no |
|
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 (added in 2.2) |
no | Ignore checksums altogether. | ||
ignore_dependencies (added in 2.1) |
no | Ignore dependencies, only install/upgrade the package itself. | ||
install_args (added in 2.1) |
no | Arguments to pass to the native installer. | ||
name |
yes | Name of the package to be installed. | ||
params (added in 2.1) |
no | Parameters to pass to the package | ||
source |
no | Specify source rather than using default chocolatey repository. | ||
state |
no | present |
|
State of the package on the system. |
timeout (added in 2.3) |
no | 2700 | The time to allow chocolatey to finish before timing out. aliases: execution_timeout | |
upgrade |
no |
|
If package is already installed it, try to upgrade to the latest version or to the specified version. As of Ansible v2.3 this is deprecated, set parameter state to "latest" for the same result. | |
version |
no | Specific version of the package to be installed. Ignored when state is set to "absent". |
# Install git win_chocolatey: name: git state: present # Upgrade installed packages win_chocolatey: name: all state: latest # Install notepadplusplus version 6.6 win_chocolatey: name: notepadplusplus.install version: '6.6' # Install git from specified repository win_chocolatey: name: git source: https://someserver/api/v2/ # Uninstall git win_chocolatey: name: git state: absent
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is supported mainly by the community and is curated by core committers.
For more information on what this means please read Module Support
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.