don_rumata.ansible_role_install_firefox
Ansible Role: Install Firefox
This playbook installs Firefox on Linux and Windows systems.
Supported Platforms
Ansible Galaxy Format
platforms:
- name: Fedora
versions:
- 31
- 32
- name: Ubuntu
versions:
- focal
- bionic
- xenial
- name: Debian
versions:
- oldstable
- stable
- name: EL (CentOS)
versions:
- 7
- 8
- name: openSUSE
versions:
- tumbleweed
- name: ArchLinux
versions:
- any
- name: Windows
versions:
- 2008x64 (7 64bit)
- 2008x86 (7 32bit)
- 2019 (10 64bit)
Status Indicators
- β - Works, tested, OK.
- π¨ - TODO. Work in progress.
- β - Doesn't work. Avoid using.
| OS | Firefox stable | Firefox beta | Firefox nightly | Firefox developer | Firefox ESR | Flatpak | Snap | MSI | EXE | TAR.BZ2 | 32 bit | 64 bit | |----------------|-------------------|-------------------|-------------------|-------------------|--------------------|---------------------|---------------------|--------------------|--------------------|------------------|------------------| | Windows | | | | | | | | | | | | | 7 | β | β | β | β | β | β | β | β | β | β | β | β | | 10 | β | β | β | β | β | β | β | β | β | β | β | β | | Ubuntu | | | | | | | | | | | | | focal | β | β | β | β | β | β | β | β | β | β | β | β | | Debian | | | | | | | | | | | | | jessie | β | β | β | β | β | β | β | β | β | β | β | β | | EL (CentOS) | | | | | | | | | | | | | 8 | β | β | β | β | β | β | β | β | β | β | β | β | | openSUSE | | | | | | | | | | | | | tumbleweed | β | β | β | β | β | β | β | β | β | β | β | β | | ArchLinux | | | | | | | | | | | | | any | β | β | β | β | β | β | π¨ | β | β | β | β | β | | Fedora | | | | | | | | | | | | | 32 | β | β | β | β | β | | | | | | β | β |
Requirements
- Minimum Ansible version: 2.8 (Link)
Role Variables
---
# Firefox Edition
firefox_edition: stable # Change to beta, nightly, developer, or esr as needed
# Installation Method
firefox_method_install: package-manager # Choose from package-manager, flatpak, snap, or tar.bz2
# Architecture
firefox_arch: 64 # Change to 32 if needed
# Language
# firefox_lang: ru # Change to your desired language
# Installer Type (Windows only)
firefox_win_installer_type: exe # Change to msi if needed
# Local Download Paths
firefox_windows_local_download_path: '{{ ansible_env.TMP }}\firefox'
firefox_linux_local_download_path: '/var/cache/firefox'
# Install Paths (for tar.bz2)
firefox_linux_install_path: '/opt/firefox/{{ firefox_edition }}'
# Checksum Algorithm
firefox_checksum_algorithm: sha256 # or change to sha512
# Version to Install
firefox_version: latest # Specify version like 75.0 if needed
# APT Repo Configuration
http_or_https: http # or https
mozilla_apt_repo_path_to_sources: /etc/apt/sources.list.d/mozilla.sources
# More apt variables here...
Dependencies
For Flatpak Installation
To install via Flatpak, clone the necessary Ansible role:
cd /path/to/your/ansible/roles
git clone https://github.com/don-rumata/ansible-role-install-flatpak
Or use Ansible Galaxy:
ansible-galaxy install don_rumata.ansible_role_install_flatpak
For Snap Installation
For Snap installation, clone:
cd /path/to/your/ansible/roles
git clone https://github.com/don-rumata/ansible-role-install-snap
Or use Ansible Galaxy:
ansible-galaxy install don_rumata.ansible_role_install_snap
For Windows 7 Deployment
Download and install Windows Management Framework 5.1.
HowTo
Quick configuration for WinRM on Windows: https://ru.stackoverflow.com/a/949971/191416
Example Playbooks
To install the latest stable Firefox on Windows or Linux via the package manager:
install-firefox.yml
:
- name: Install Firefox
hosts: all
roles:
- ansible-role-install-firefox
To install Firefox using Flatpak:
install-firefox-over-flatpak.yml
:
- name: Install Firefox
hosts: all
roles:
- ansible-role-install-flatpak
- ansible-role-install-firefox
vars:
firefox_method_install: flatpak
To install Firefox using Snap:
install-firefox-over-snap.yml
:
- name: Install Firefox
hosts: all
roles:
- don_rumata.ansible_role_install_snap
- ansible-role-install-firefox
vars:
firefox_method_install: snap
License
Apache License, Version 2.0
Author Information
TODO List
- Add more tests.
- Add support for ArchLinux language packs.
- Add uninstall functionality.
Thanks
Install Firefox for Linux and Windows
ansible-galaxy install don_rumata.ansible_role_install_firefox