chocolatey
Ansible Role: chocolatey
Description
This role optimizes and configures the package manager Chocolatey and sets several settings of the package manager under Windows.
Installation
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. |
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
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
chocolatey_feature:
- useRememberedArgumentsForUpgrades: false
- usePackage0RepositoryOptimizations: false
- useEnhancedExitCodes: false
Dependencies
None
Example Playbook
- hosts: all
roles:
- arillso.chocolatey
Author
License
This project is under the MIT License. See the LICENSE file for the full license text.
Copyright
(c) 2019, Arillso
Install
ansible-galaxy install arillso/ansible.chocolatey
License
mit
Downloads
611782
Owner