https://github.com/arillso/ansible.chocolatey
Manage the Chocolatey Source list and config.
https://github.com/arillso/ansible.chocolatey
ansible ansible-role chocolatey
Last synced: about 1 year ago
JSON representation
Manage the Chocolatey Source list and config.
- Host: GitHub
- URL: https://github.com/arillso/ansible.chocolatey
- Owner: arillso
- License: mit
- Created: 2018-04-18T12:57:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T11:08:30.000Z (over 5 years ago)
- Last Synced: 2025-03-24T13:44:06.551Z (over 1 year ago)
- Topics: ansible, ansible-role, chocolatey
- Homepage:
- Size: 43.9 KB
- Stars: 2
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: chocolatey
[](https://travis-ci.org/arillso/ansible.chocolatey) [](https://sbaerlo.ch/licence) [](https://galaxy.ansible.com/arillso/chocolatey) [](https://galaxy.ansible.com/arillso/chocolatey)
## Description
This role optimizes and configures the package manager Chocolatey and sets several settings of the package manager under Windows.
## Installation
```bash
ansible-galaxy install arillso.chocolatey
```
## Requirements
None
## Role Variables
### Source
A list of possible Chocolatey repositories that can be added or removed.
| Parameters | Description |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | The name of the source. Required with actions other than list. |
| admin_only | Makes the source visible to Administrators only. |
| allow_self_service | Allow the source to be used with self-service |
| bypass_proxy | Bypass the proxy when using this source. |
| certificate | The path to a .pfx file to use for X509 authenticated feeds. |
| certificate_password | The password for certificate if required. |
| source | The file/folder/url of the source. |
| user | The username used to access source. |
| password | The password for source_username. |
| priority | The priority order of this source compared to other sources, lower is better. All priorities above 0 will be evaluated first then zero-based values will be evaluated in config file order. |
| state | absent, will remove the source. disabled, will ensure the source exists but is disabled. present, will ensure the source exists and is enabled. |
| update_password | always, the module will always set the password and report a change if certificate_password or source_password is set. on_create, the module will only set the password if the source is being created. |
```yml
chocolatey_source:
- name: chocolatey
source: https://chocolatey.org/api/v2/
priority: 0
state: present
```
### Config
There are settings that you can adjust in which way Chocolatey works for you.
See: [https://chocolatey.org/docs/chocolatey-configuration#config-settings](https://chocolatey.org/docs/chocolatey-configuration#config-settings)
```yml
chocolatey_config:
# Default timeout for command execution
- commandExecutionTimeoutSeconds: 2700
```
### Features
There are functions that you can adjust in which way Chocolatey works for you.
See: [https://chocolatey.org/docs/chocolatey-configuration#features](https://chocolatey.org/docs/chocolatey-configuration#features)
```yml
chocolatey_feature:
- useRememberedArgumentsForUpgrades: false
- usePackage0RepositoryOptimizations: false
- useEnhancedExitCodes: false
```
## Dependencies
None
## Example Playbook
```yml
- hosts: all
roles:
- arillso.chocolatey
```
## Author
- [Simon Bärlocher](https://sbaerlocher.ch)
## License
This project is under the MIT License. See the [LICENSE](https://sbaerlo.ch/licence) file for the full license text.
## Copyright
(c) 2019, Arillso