arillso.chocolatey

Ansible Role: chocolatey

Build Status license Ansible Galaxy Ansible Role

Description

This role sets up and configures the Chocolatey package manager on Windows.

Installation

Run the following command to install:

ansible-galaxy install arillso.chocolatey

Requirements

None

Role Variables

Source

You can manage Chocolatey repositories by adding or removing them. Here’s what each option means:

Parameters Description
name The name of the source (required for actions other than listing).
admin_only Makes the source only accessible to Administrators.
allow_self_service Allows self-service access to the source.
bypass_proxy Bypasses the proxy for this source.
certificate Path to a .pfx file for X509 authenticated feeds.
certificate_password Password for the certificate, if needed.
source The file/folder/url that acts as the source.
user Username to access the source.
password Password for the username.
priority The order of importance for this source compared to others; a lower number is better. Higher numbers are assessed first, then zero-based priorities follow.
state Options: absent (removes the source), disabled (keeps the source but disables it), present (ensures the source is enabled).
update_password Options: always (always updates the password), on_create (updates the password only when the source is created).

Example configuration:

chocolatey_source:
  - name: chocolatey
    source: https://chocolatey.org/api/v2/
    priority: 0
    state: present

Config

You can modify various settings for how Chocolatey operates.
See: Chocolatey Configuration Documentation

Example:

chocolatey_config:
  - commandExecutionTimeoutSeconds: 2700  # This sets the default timeout for command execution

Features

Adjust features for how Chocolatey operates.
See: Chocolatey Features Documentation

Example:

chocolatey_feature:
  - useRememberedArgumentsForUpgrades: false
  - usePackage0RepositoryOptimizations: false
  - useEnhancedExitCodes: false

Dependencies

None

Example Playbook

To use this role, your playbook could look like this:

- hosts: all
  roles:
    - arillso.chocolatey

Author

License

This project is licensed under the MIT License. See the LICENSE file for more details.

(c) 2019, Arillso

Informazioni sul progetto

Configures Chocolatey on Windows Systems

Installa
ansible-galaxy install arillso.chocolatey
Licenza
mit
Download
612.1k
Proprietario