Coder Social home page Coder Social logo

steviecoaster / chocolatey-ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chocolatey/chocolatey-ansible

0.0 2.0 0.0 240 KB

The Chocolatey module collection for Ansible

License: GNU General Public License v3.0

PowerShell 74.63% Python 23.81% Shell 1.56%

chocolatey-ansible's Introduction

Ansible Collection: chocolatey.chocolatey

Build Status
Build Status

The chocolatey.chocolatey Ansible Collection includes the modules required to configure Chocolatey, as well as manage packages on Windows using Chocolatey.

Ansible version compatibility

This collection has been tested against the following Ansible versions: >=2.9, 2.10, 2.11, 2.12

Installation and Usage

Installing the Collection from Ansible Galaxy

Before using the Chocolatey collection, you need to install it with the ansible-galaxy CLI:

ansible-galaxy collection install chocolatey.chocolatey

You can also include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml using the format:

collections:
- name: chocolatey.chocolatey

Modules

This collection provides the following modules you can use in your own roles:

Name Description
win_chocolatey Manage packages using chocolatey
win_chocolatey_config Manage Chocolatey config settings
win_chocolatey_facts Create a facts collection for Chocolatey
win_chocolatey_feature Manage Chocolatey features
win_chocolatey_source Manage Chocolatey sources

Examples

Some example usages of the modules in this collection are below.

Upgrade all packages with Chocolatey:

- name: Upgrade installed packages
  win_chocolatey:
    name: all
    state: latest

Install version 6.6 of notepadplusplus:

- name: Install notepadplusplus version 6.6
  win_chocolatey:
    name: notepadplusplus
    version: '6.6'

Set the Chocolatey cache location:

- name: Set the cache location
  win_chocolatey_config:
    name: cacheLocation
    state: present
    value: C:\Temp

Use Background Mode for Self-Service (Business Feature):

- name: Use background mode for self-service
  win_chocolatey_feature:
    name: useBackgroundService
    state: enabled

Remove the Community Package Repository (as you have an internal repository; recommended):

- name: Disable Community Repo
  win_chocolatey_source:
    name: chocolatey
    state: absent

Testing and Development

If you want to develop new content for this collection or improve what's already here, the easiest way to work on the collection is to clone it into one of the configured COLLECTIONS_PATHS, and work on it there.

Testing with ansible-test

The tests directory contains configuration for running integration tests using ansible-test.

You can run the collection's test suites with the commands:

ansible-test windows-integration --docker -v --color

License

GPL v3.0 License

See LICENSE to see full text.

chocolatey-ansible's People

Contributors

adilio avatar corbob avatar gep13 avatar jborean93 avatar jonahbull avatar jpruskin avatar mrbones757 avatar pauby avatar steviecoaster avatar vexx32 avatar voskampm avatar windos avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.