New in version 2.7.
Parameter | Choices/Defaults | Comments |
---|---|---|
name required | The name of the config setting to manage. See https://chocolatey.org/docs/chocolatey-configuration for a list of valid configuration settings that can be changed. Any config values that contain encrypted values like a password are not idempotent as the plaintext value cannot be read. | |
state |
| When absent , it will ensure the setting is unset or blank.When present , it will ensure the setting is set to the value of value. |
value | Used when state=present that contains the value to set for the config setting.Cannot be null or an empty string, use state=absent to unset a config value instead. |
- name: set the cache location win_chocolatey_config: name: cacheLocation state: present value: D:\chocolatey_temp - name: unset the cache location win_chocolatey_config: name: cacheLocation state: absent
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/win_chocolatey_config_module.html