Install Google Chrome in Windows-like systems - Ansible module win_chocolatey
By Luca Berton · Published 2024-01-01 · Category: installation
How to install the latest Google Chrome Stable on a Windows-like workstation using the chocolatey package manager. Included Playbook in Windows 2019.

How to Install Google Chrome in Windows-like systems with Ansible?
Today I'm going to reveal how to install the software in a Windows-managed host using Chocolatey Package Manager.See also: Install Google Chrome in Debian like systems - Ansible module apt_key, apt_repository and apt
Ansible module win_chocolatey
- chocolatey.chocolatey.win_chocolatey
- Manage packages using chocolatey
Parameters
- name list-string - the name of the package
- state string - present / latest /absent /downgrade /reinstalled
- version string - specific version
## Playbook
Install Google Chrome in Windows-like systems with Ansible Playbook.
code
- install_chrome_windows.yml
---
- name: install Google Chrome
hosts: all
become: false
gather_facts: false
tasks:
- name: install packages
chocolatey.chocolatey.win_chocolatey:
name: "googlechrome"
state: present
execution
$ ansible-playbook -i win/inventory install\ chrome/windows.yml
PLAY [install Google Chrome] **********************************************************************
TASK [install packages] ***************************************************************************
changed: [WindowsServer]
PLAY RECAP ****************************************************************************************
WindowsServer : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
See also: Install Google Chrome on Red Hat Using Ansible
Conclusion
Now you know how to install Google Chrome in Windows-like systems using the chocolatey package manager with Ansible.
Related Articles
Category: installation
Watch the video: Install Google Chrome in Windows-like systems - Ansible module win_chocolatey — Video Tutorial