Update Google Chrome on Windows With Ansible

Following my blog post about installing Google Chrome on Windows hosts with Ansible, today, I will show you how to update Google Chrome using Ansible.

Install Chrome

If you have not seen the blog post about installing Chrome, please visit the following post to understand how to get installed.

Update Chrome

To update Google Chrome using Ansible, I will use a playbook that is similar to the one I used to install chrome, but this time I will use the state option to check for the latest version.

The playbook is shown below.

---
- name: "Chocolatey"
  hosts: windows
  tasks:
    - name: Update Google Chrome
      win_chocolatey:
          name: googlechrome
          state: latest
          ignore_checksums: yes

If you new to Ansible and Windows please visit the blog series on this topic.

Processing…
Success! You're on the list.