gantsign.default-web-browser
Ansible Role: Default Web Browser
This role sets the default web browser on a Gnome desktop environment.
Requirements
- Ansible version 2.9 or higher
- Ubuntu operating system:
- Bionic (version 18.04)
- Focal (version 20.04)
- Gnome desktop environment
- A web browser must already be installed before using this role.
Role Variables
You can change how this role works by setting the following variable (the default value is shown):
# The web browser you want to set as default (just the name of the .desktop file, without the extension)
default_web_browser: google-chrome
Example Playbook
Here’s an example of how to use this role in a playbook:
- hosts: servers
roles:
- role: gantsign.default-web-browser
default_web_browser: google-chrome
More Roles From GantSign
You can find more roles from GantSign on Ansible Galaxy.
Development & Testing
This project uses Molecule for development and testing. The role is tested using Testinfra and pytest.
To develop or test this role, you need:
Since installing these can be complicated, this project includes a tool called Molecule Wrapper. This tool is a shell script that installs Molecule and its required components (except for Linux), then runs Molecule with the command you give it.
To test this role using Molecule Wrapper, run the following command from the main project folder:
./moleculew test
Note: Some dependencies require sudo permissions to install.
License
MIT License
Author Information
John Freeman
GantSign Ltd.
Company No. 06109112 (registered in England)
Role for setting the default web browser for Gnome desktop.
ansible-galaxy install gantsign.default-web-browser