No description
Find a file
Mark van Huijstee cf5d2f262b
Merge pull request #10 from de-it-krachten/dev
Update supported platforms & CI (2026-03-14)
2026-03-15 12:36:23 +01:00
.github/workflows Update supported platforms & CI 2026-03-14 19:22:45 +01:00
defaults Initial commit 2023-12-07 20:06:09 +01:00
meta Update CI 2026-03-06 22:28:19 +01:00
molecule/default Update supported platforms & CI 2026-03-14 14:38:43 +01:00
tasks Update CI 2026-01-21 19:23:49 +01:00
.ansible-lint Initial commit 2023-12-07 20:06:09 +01:00
.cicd Update CI 2026-03-06 22:28:19 +01:00
.cicd.overwrite Update CI 2026-03-06 22:28:19 +01:00
.collections feat: Add support for Ubuntu 24.04 LTS + Fedora 40 2024-05-31 22:51:47 +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.0 [skip ci] 2026-03-14 16:35:54 +00:00
README.md Update CI 2026-03-06 22:28:19 +01:00

CI

ansible-role-chocolatey

Install chocolay on Windows hosts and managed chocolatey packages

Dependencies

Roles

None

Collections

  • 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/

# 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