don_rumata.ansible_role_install_firefox

Ansible Role: Install Firefox

License Ansible Galaxy CircleCI

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

don Rumata

TODO List

  • Add more tests.
  • Add support for ArchLinux language packs.
  • Add uninstall functionality.

Thanks

Installa
ansible-galaxy install don_rumata.ansible_role_install_firefox
Licenza
apache-2.0
Download
113
Proprietario
Π—Π΄Π΅ΡΡŒ всС бСсполСзно. Π—Π½Π°Π½ΠΈΠΉ Π½Π΅ Ρ…Π²Π°Ρ‚Π°Π΅Ρ‚, Π° Π·ΠΎΠ»ΠΎΡ‚ΠΎ тСряСт Ρ†Π΅Π½Ρƒ, ΠΏΠΎΡ‚ΠΎΠΌΡƒ Ρ‡Ρ‚ΠΎ ΠΎΠΏΠ°Π·Π΄Ρ‹Π²Π°Π΅Ρ‚.