chocolatey.chocolatey.win_chocolatey_source module – Manages Chocolatey sources
Note
This module is part of the chocolatey.chocolatey collection (version 1.5.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install chocolatey.chocolatey
.
To use it in a playbook, specify: chocolatey.chocolatey.win_chocolatey_source
.
New in chocolatey.chocolatey 0.2.7
Synopsis
Used to managed Chocolatey sources configured on the client.
Requires Chocolatey to be already installed on the remote host.
Parameters
Parameter |
Comments |
---|---|
Makes the source visible to Administrators only. Requires Chocolatey >= 0.10.8. When creating a new source, this defaults to Choices:
|
|
Allow the source to be used with self-service Requires Chocolatey >= 0.10.4. When creating a new source, this defaults to Choices:
|
|
Bypass the proxy when using this source. Requires Chocolatey >= 0.10.4. When creating a new source, this defaults to Choices:
|
|
The path to a .pfx file to use for X509 authenticated feeds. Requires Chocolatey >= 0.9.10. |
|
The password for certificate if required. Requires Chocolatey >= 0.9.10. |
|
The name of the source to configure. |
|
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 |
|
The file/folder/url of the source. Required when state is |
|
The password for source_username. Required if source_username is set. |
|
The username used to access source. |
|
When When When Choices:
|
|
When When Choices:
|
See Also
See also
- chocolatey.chocolatey.win_chocolatey
Manage packages using chocolatey.
- chocolatey.chocolatey.win_chocolatey_config
Manages Chocolatey config settings.
- chocolatey.chocolatey.win_chocolatey_facts
Create a facts collection for Chocolatey.
- chocolatey.chocolatey.win_chocolatey_feature
Manages Chocolatey features.
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: chocolatey
state: disabled