darkwizard242.googlechrome
Ansible Role: googlechrome
This role installs google-chrome-stable on Debian and EL-based systems. It can also uninstall it if specified.
Requirements
No requirements needed.
Role Variables
The variables you can use are listed below (found in defaults/main.yml
):
Variables list:
googlechrome_app: google-chrome-stable
googlechrome_desired_state: present
googlechrome_gpg_key: https://dl.google.com/linux/linux_signing_key.pub
googlechrome_repo_desired_state: present
googlechrome_repo_debian: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
googlechrome_repo_debian_filename: google-chrome
googlechrome_repo_el: http://dl.google.com/linux/chrome/rpm/stable/x86_64
googlechrome_repo_el_name: google-chrome
googlechrome_repo_el_description: google-chrome
googlechrome_repo_el_gpgcheck: yes
googlechrome_repo_el_enabled: yes
googlechrome_repo_el_filename: google-chrome
Variables table:
Variable | Description |
---|---|
googlechrome_app | Specifies the application to install, which is google-chrome-stable |
googlechrome_desired_state | Sets whether to install (present or latest ) or uninstall (absent ) the package. Defaults to present . |
googlechrome_gpg_key | GPG key for Google Chrome. |
googlechrome_repo_desired_state | Sets if the repo for Google Chrome should be present or absent. |
googlechrome_repo_debian | Repo link for Google Chrome on Debian systems. |
googlechrome_repo_debian_filename | File name to save Google Chrome's repo in /etc/apt/sources.list.d/ . |
googlechrome_repo_el | Repo link for Google Chrome on EL systems. |
googlechrome_repo_el_name | Name of Google Chrome's repo for EL systems. |
googlechrome_repo_el_description | Description of Google Chrome's repo for EL systems. |
googlechrome_repo_el_gpgcheck | Sets if the GPG check should be performed (yes or no ). |
googlechrome_repo_el_enabled | Sets if the repository is enabled (yes or no ). |
googlechrome_repo_el_filename | File name to save Google Chrome's repo in /etc/yum.repos.d/ . |
Dependencies
No dependencies.
Example Playbook
Default behavior (installation of google-chrome-stable):
- hosts: servers
roles:
- darkwizard242.googlechrome
Custom behavior (installation of latest google-chrome-stable):
- hosts: servers
roles:
- darkwizard242.googlechrome
vars:
googlechrome_desired_state: latest
Custom behavior (uninstallation of google-chrome-stable):
- hosts: servers
roles:
- darkwizard242.googlechrome
vars:
googlechrome_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Google Chrome stable version installation or uninstallation in Debian/EL based systems with amd64 architecture.
Installa
ansible-galaxy install darkwizard242.googlechrome
Licenza
mit
Download
27.1k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!