In this blog post, I will show you how to install Google Chrome on a managed Windows Machines using Ansible.
Chocolatey Package Manager
Following on my last blog post about Chocolatey, we will build on that knowledge and use the Chocolatey package manager to install Google Crohome without user or admin intervenes.
Playbook
The playbook below will use the Win_Chocolatey module to install Google Chrome. It is important to notice that you will need to install the Chocolatey package manager and core extension first before running this playbook as shown here.
--- - name: "Chocolatey" hosts: windows tasks: - name: Install Google Chrome win_chocolatey: name: googlechrome state: present ignore_checksums: yes
The above code will install the latest Google Chrome version on the managed machines.
From experience, the process will take around two to four minutes.
Update Google Chrome
To update Google Chrome to the latest version, please visit the following post.
To lean more about Ansible and Windows, visit the following blog series.