egdoc.google_chrome
Ansible Role: google_chrome
This Ansible role installs Google Chrome on Linux systems.
Requirements
To maintain idempotence (ensuring that applying the same configuration multiple times does not change the system after the first application), this role downloads the GPG key into /usr/share/keyrings/
without modifying it on Debian-based systems. The key in this format is only usable with SecureApt version 1.4 or later, as noted in the documentation.
Role Variables
google_chrome_state
: Set topresent
to ensure the Google Chrome package is installed.google_chrome_gpg_key_url
: The URL for the Google Chrome GPG key:https://dl.google.com/linux/linux_signing_key.pub
google_chrome_gpg_key_fingerprint
: The fingerprint for the GPG key:4CCA1EAF950CEE4AB83976DCA040830F7FAC5991
google_chrome_rpm_repository_url
: The URL for the Google Chrome RPM repository:https://dl.google.com/linux/chrome/rpm/stable/x86_64
google_chrome_apt_repository_url
: The URL for the Google Chrome APT repository:deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.asc] https://dl.google.com/linux/chrome/deb/ stable main
Dependencies
No additional dependencies are required.
Example Playbook
- hosts: all
roles:
- role: egdoc.google_chrome
License
GPL-2.0
Author Information
This role was created by Egidio Docile.
ansible-galaxy install egdoc.google_chrome