ansible.builtin.win_chocolatey_feature (v2.9.27) — module

Manages Chocolatey features

| "added in version" 2.7 of ansible.builtin"

Authors: Jordan Borean (@jborean93)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Used to enable or disable features in Chocolatey.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable file checksum matching
  win_chocolatey_feature:
    name: checksumFiles
    state: disabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Stop Chocolatey on the first package failure
  win_chocolatey_feature:
    name: stopOnFirstPackageFailure
    state: enabled

Inputs

    
name:
    description:
    - The name of the feature to manage.
    - Run C(choco.exe feature list) to get a list of features that can be managed.
    required: true
    type: str

state:
    choices:
    - disabled
    - enabled
    default: enabled
    description:
    - When C(disabled) then the feature will be disabled.
    - When C(enabled) then the feature will be enabled.
    type: str

See also