Repository URL to install this package:
Version:
6.0.0 ▾
|
.. |
changelogs |
meta |
plugins |
FILES.json |
LICENSE |
MANIFEST.json |
README.md |
Build Status |
---|
This repo hosts the chocolatey.chocolatey
Ansible Collection.
The collection includes the modules required to configure Chocolatey, as well as manage packages on Windows using Chocolatey.
Before using the Chocolatey collection, you need to install it with the ansible-galaxy
CLI:
ansible-galaxy collection install chocolatey.chocolatey
You can also include it in a requirements.yml
file and install it via ansible-galaxy collection install -r requirements.yml
using the format:
collections: - name: chocolatey.chocolatey
This collection provides the following modules you can use in your own roles:
Name | Description |
---|---|
win_chocolatey |
Manage packages using chocolatey |
win_chocolatey_config |
Manage Chocolatey config settings |
win_chocolatey_facts |
Create a facts collection for Chocolatey |
win_chocolatey_feature |
Manage Chocolatey features |
win_chocolatey_source |
Manage Chocolatey sources |
Some example usages of the modules in this collection are below.
Upgrade all packages with Chocolatey:
- name: Upgrade installed packages win_chocolatey: name: all state: latest
Install version 6.6 of notepadplusplus
:
- name: Install notepadplusplus version 6.6 win_chocolatey: name: notepadplusplus version: '6.6'
Set the Chocolatey cache location:
- name: Set the cache location win_chocolatey_config: name: cacheLocation state: present value: C:\Temp
Use Background Mode for Self-Service (Business Feature):
- name: Use background mode for self-service win_chocolatey_feature: name: useBackgroundService state: enabled
Remove the Community Package Repository (as you have an internal repository; recommended):
- name: Disable Community Repo win_chocolatey_source: name: chocolatey state: absent
If you want to develop new content for this collection or improve what's already here, the easiest way to work on the collection is to clone it into one of the configured COLLECTIONS_PATHS
, and work on it there.
ansible-test
The tests
directory contains configuration for running integration tests using ansible-test
.
You can run the collection's test suites with the commands:
ansible-test windows-integration --docker -v --color
GPL v3.0 License
See LICENSE to see full text.