Skip to content

deekayen/ansible-role-chocolatey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chocolatey

CI Project Status: Unsupported – The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired. BSD 3-Clause license Windows platform

Install the Chocolatey package manager on Microsoft Windows.

If Chocolatey is missing from the system, the win_chocolatey module is supposed to install it. This role may be helpful to ensure Chocolatey is available on a system, even if you don't run win_chocolatey tasks against it. See http://docs.ansible.com/ansible/win_chocolatey_module.html.

Role Variables

The tasks look for choco.exe at the chocolatey_path. The installer Powershell script defaults to downloading from chocolatey.org; change chocolatey_installer if your target machine doesn't have Internet access or uses a customized install script.

chocolatey_installer: https://chocolatey.org/install.ps1
chocolatey_path: c:/ProgramData/chocolatey
chocolatey_version: latest
chocolatey_windows_compression: "false"

Example Playbook

- hosts: win_servers
  roles:
     - role: deekayen.chocolatey
       chocolatey_installer: https://chocolatey.org/install.ps1
       chocolatey_path: c:/ProgramData/chocolatey

Requirements

The user running this role needs administrator access.

  • Windows 7+ / Windows Server 2008+
  • PowerShell v3+
  • .NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)

Dependencies

None.

License

BSD