

# Make sure the version matches for the arguments as well. To update installed Chocolatey packages, you must invoke choco manually every time you need to upgrade. # 7zip is the most compatible, but you need an internally hosted 7za.exe. $repoPassword = '' # this must be empty if NOT using authentication You are just a few steps from running choco right now First, ensure that you are using an administrative shell - you can also install as a non-admin, check out Non-Administrative Installation. $repoUsername = '' # this must be empty is NOT using authentication Otherwise these leave these as empty strings.

# If the above $packageRepo repository requires authentication, add the username and password here. # If you are using Nexus, always add the trailing slash or it won't work # This is where you see the top level API - with xml to Packages - should look nearly the same as installchromewindows.yml- name: install Google Chrome hosts: all become: false gatherfacts: false tasks: - name: install packages : name: 'googlechrome' state: present. Install Google Chrome in Windows-like systems with Ansible Playbook.

# Download and install Chocolatey nupkg from an OData (HTTP/HTTPS) url such as Artifactory, Nexus, ProGet (all of these are recommended for organizational use), or Chocolatey.Server (great for smaller organizations and POCs) In our case for install is present or latest.
