chocolatey.chocolatey.win_chocolatey_source – Manages Chocolatey sources
This plugin is part of the chocolatey.chocolatey collection (version 1.1.0).
You might already have this collection installed if you are using the
It is not included in
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:
New in version 0.2.7: of chocolatey.chocolatey
Used to managed Chocolatey sources configured on the client.
Requires Chocolatey to be already installed on the remote host.
The official documentation on the win_chocolatey module.
The official documentation on the win_chocolatey_config module.
The official documentation on the win_chocolatey_facts module.
The official documentation on the win_chocolatey_feature module.
- 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