chocolatey.chocolatey.win_chocolatey_feature – Manages Chocolatey features

Note

This plugin is part of the chocolatey.chocolatey collection (version 1.0.2).

To install it use: ansible-galaxy collection install chocolatey.chocolatey.

To use it in a playbook, specify: chocolatey.chocolatey.win_chocolatey_feature.

New in version 2.7: of chocolatey.chocolatey

Synopsis

  • Used to enable or disable features in Chocolatey.

Parameters

Parameter Choices/Defaults Comments
name
string / required
The name of the feature to manage.
Run choco.exe feature list to get a list of features that can be managed.
state
string
    Choices:
  • disabled
  • enabled ←
When disabled then the feature will be disabled.
When enabled then the feature will be enabled.

See Also

See also

win_chocolatey

The official documentation on the win_chocolatey module.

win_chocolatey_config

The official documentation on the win_chocolatey_config module.

win_chocolatey_facts

The official documentation on the win_chocolatey_facts module.

win_chocolatey_source

The official documentation on the win_chocolatey_source module.

Examples

- name: Disable file checksum matching
  win_chocolatey_feature:
    name: checksumFiles
    state: disabled

- name: Stop Chocolatey on the first package failure
  win_chocolatey_feature:
    name: stopOnFirstPackageFailure
    state: enabled

Authors

  • Jordan Borean (@jborean93)