win_chocolatey_source – Manages Chocolatey sources
win_chocolatey_source – Manages Chocolatey sources
New in version 2.7.
Synopsis
- Used to managed Chocolatey sources configured on the client.
- Requires Chocolatey to be already installed on the remote host.
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
admin_only boolean |
|
Makes the source visible to Administrators only. Requires Chocolatey >= 0.10.8. When creating a new source, this defaults to |
allow_self_service boolean |
|
Allow the source to be used with self-service Requires Chocolatey >= 0.10.4. When creating a new source, this defaults to |
bypass_proxy boolean |
|
Bypass the proxy when using this source. Requires Chocolatey >= 0.10.4. When creating a new source, this defaults to |
certificate - |
The path to a .pfx file to use for X509 authenticated feeds. Requires Chocolatey >= 0.9.10. | |
certificate_password - |
The password for certificate if required. Requires Chocolatey >= 0.9.10. | |
name - / required |
The name of the source to configure. | |
priority integer |
The priority order of this source compared to other sources, lower is better. All priorities above Requires Chocolatey >= 0.9.9.9. When creating a new source, this defaults to | |
source - |
The file/folder/url of the source. Required when state is | |
source_password - |
The password for source_username. Required if source_username is set. | |
source_username - |
The username used to access source. | |
state - |
|
When When When |
update_password - |
|
When When |
Examples
- name: remove the default public source
win_chocolatey_source:
name: chocolatey
state: absent
- name: add new internal source
win_chocolatey_source:
name: internal repo
state: present
source: http://chocolatey-server/chocolatey
- name: create HTTP source with credentials
win_chocolatey_source:
name: internal repo
state: present
source: https://chocolatey-server/chocolatey
source_username: username
source_password: password
- name: disable Chocolatey source
win_chocolatey_source:
name: chocoaltey
state: disabled
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors
- Jordan Borean (@jborean93)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/win_chocolatey_source_module.html