mirror of
https://github.com/de-it-krachten/ansible-role-chocolatey
synced 2026-05-14 11:41:50 +00:00
No description
- Jinja 100%
|
|
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
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