- name: Add Google apt repository key. ansible.builtin.get_url: url: https://dl.google.com/linux/linux_signing_key.pub dest: /etc/apt/keyrings/google.asc mode: "0644" force: true - name: Add Google Repository ansible.builtin.apt_repository: repo: deb [arch=amd64 signed-by=/etc/apt/keyrings/google.asc] https://dl.google.com/linux/chrome/deb/ stable main filename: google-chrome-ansible state: present # https://support.google.com/chrome/a/answer/9052345?hl=en#zippy=%2Cstep-turn-off-chrome-browser-updates - name: Disable google-chrome-stable sources ansible.builtin.copy: dest: /etc/default/google-chrome content: | repo_add_once="false" repo_reenable_on_distupgrade="false" mode: "0644" - name: Update apt and install google-chrome-stable ansible.builtin.apt: name: google-chrome-stable state: present update_cache: true