- name: remove old google signing key file: path: /etc/apt/trusted.gpg.d/google-signing-key.gpg state: absent - name: download and install google signing key shell: | curl -sSL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/google-signing-key.gpg - name: add google chrome repo copy: dest: /etc/apt/sources.list.d/google-chrome.list content: | deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/google-signing-key.gpg] https://dl.google.com/linux/chrome/deb stable main - name: update apt cache apt: update_cache: yes - name: install google chrome apt: name: google-chrome-stable state: present