No description
Find a file
semantic-release-bot e79852becc chore(release): 1.4.1 [skip ci]
## [1.4.1](https://github.com/de-it-krachten/ansible-role-chocolatey/compare/v1.4.0...v1.4.1) (2026-07-09)

### Bug Fixes

* Improve installation ([256c1c7](256c1c7b3f))
2026-07-09 13:03:50 +00:00
.github/workflows Update CI 2026-06-08 13:07:19 +02:00
defaults fix: Improve installation 2026-07-09 14:56:50 +02:00
meta Update CI 2026-03-06 22:28:19 +01:00
molecule/default Update CI 2026-06-09 10:46:12 +02:00
tasks fix: Improve installation 2026-07-09 14:56:50 +02:00
.ansible-lint Update CI 2026-06-07 16:44:37 +02:00
.cicd Update CI 2026-06-09 10:46:12 +02:00
.cicd.overwrite Update CI 2026-06-07 16:44:37 +02:00
.collections Update README 2026-07-09 14:58:27 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 01:33:31 +01:00
.releaserc.yml Update CI 2026-01-21 19:23:49 +01:00
.roles Initial commit 2023-12-07 20:06:09 +01:00
.yamllint Update CI 2024-10-17 00:19:40 +02:00
CHANGELOG.md chore(release): 1.4.1 [skip ci] 2026-07-09 13:03:50 +00:00
README.md Update README 2026-07-09 14:58:27 +02:00

CI

ansible-role-chocolatey

Install chocolay on Windows hosts and managed chocolatey packages

Dependencies

Roles

None

Collections

  • ansible.windows
  • chocolatey.chocolatey

Platforms

Supported platforms

  • Windows Server 2012 R21
  • Windows Server 20161
  • Windows Server 20191
  • Windows Server 20221
  • Windows Server 20251

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Chocolatey installation script
chocolatey_bootstrap_script: https://community.chocolatey.org/install.ps1

# Chocolatey repository
chocolatey_repository: https://community.chocolatey.org/api/v2/

# Chocolatey installation location
chocolatey_install_location: 'C:\ProgramData\chocolatey'

# Chocolatey version
chocolatey_version: present

# Should the default public source be delete
chocolatey_delete_public_source: false

# Extra sources to configure
chocolatey_sources: []

# List of chcolatey packages to install
chocolatey_packages: []

# Update package to latest version
chocolatey_package_update: false

# Proxy for connecting to repository & software packages
# chocolatey_proxy_url: http://127.0.0.1:3128

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'chocolatey'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    chocolatey_packages:
      - name: putty.install
        version: latest
      - name: mobaxterm
        ignore_checksums: true
  tasks:
    - name: Include role 'chocolatey'
      ansible.builtin.include_role:
        name: chocolatey