Ansible role for fetching and installing Firefox through various ways.
This role requires the Ansible collection community.general to be installed on the system.
This role requires the python package jsonschema to be installed on the system.
pip install jsonschemaBefore the role can be used it needs to be added to the machine running the playbook, and as of writing this, this role is not hosted on Ansible-Galaxy only on Github.
-
Create a requirements.yml file in the root directory of the playbook being worked on.
-
Add the following definition inside the requirements.yml file:
roles:
- name: hth-firefox
src: https://github.com/hrafnthor/ansible-vscode.git
scm: git
collections:
- name: community.general- Install the requirements by executing
ansible-galaxy install -r .requirements.ymlThis will allow any playbook run from this machine to use the role hth-firefox
Values are optional unless marked otherwise.
gather_facts [optional] (boolean) Indicates if this role should gather facts or rely on present facts.
mozilla
signing [required]
path [required] (string) The absolute file path to the signing key used by Mozilla. This key can be found at: https://packages.mozilla.org/apt/repo-signing-key.gpg
force (boolean) Indicates if the signing key should override any other key found.
priority (boolean) Indicates if this repository should be given priority over any other.
snap (boolean) Indicates if Firefox should be installed from the Snap store. If false and Firefox is installed from the Snap, it will be uninstalled.
esr (boolean) Indicates if Firefox-ESR should be installed from the MozillaTeam PPA (https://launchpad.net/~mozillateam/+archive/ubuntu/ppa). If false and Firefox-ESR is installed, it will be uninstalled.
firefox:
gather_facts: false
mozilla:
signing:
path: "/path/to/mozilla/signing/key.gpg"
force: false
priority: true
snap: false
esr: true- hosts: all
vars:
- firefox:
gather_facts: false
mozilla:
signing:
path: "/path/to/mozilla/signing/key.gpg"
force: false
priority: true
snap: false
esr: true
roles:
- hth-firefoxApache 2.0. See attached license file.
Hrafn Thorvaldsson. http://www.hth.is