don_rumata.ansible_role_install_firefox

Rola Ansible: Instalacja Firefox

Licencja Ansible Galaxy CircleCI

Instalacja Firefox dla systemów Linux i Windows.

Obsługiwane systemy

Styl Ansible Galaxy

  platformy:
    - nazwa: Fedora
      wersje:
        - 31
        - 32
    - nazwa: Ubuntu
      wersje:
        - focal
        - bionic
        - xenial
    - nazwa: Debian
      wersja:
        - oldstable
        - stable
        # - testing
    - nazwa: EL (CentOS)
      wersje:
        - 7
        - 8
    - nazwa: opensuse
      wersja:
        - tumbleweed
    - nazwa: ArchLinux
      wersja:
        - dowolna
    - nazwa: windows
      wersja:
        - 2008x64 (7 64bit)
        - 2008x86 (7 32bit)
        - 2019 (10 64bit)

Styl tabeli

  • :heavy_check_mark: - działa, przetestowane, ok.
  • :construction: - TODO. W toku.
  • :x: - nie działa. Nie próbuj.
Firefox stabilny Firefox beta Firefox nightly Firefox deweloper Firefox esr . Flatpak Snap msi exe tar.bz2 . 32 bit 64 bit
OS
Windows
7 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :heavy_check_mark:
10 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :x: :heavy_check_mark: :heavy_check_mark:
.
Ubuntu
focal :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
eoan :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
disco :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
cosmic :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
bionic :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
xenial :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
.
Debian
jessie :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
stretch :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
buster :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
stable :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
testing :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
.
EL (CentOS)
8 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
7 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
.
opensuse
tumbleweed :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :x: :x: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
.
ArchLinux
dowolna :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :construction: :x: :x: :heavy_check_mark: :x: :heavy_check_mark:
.
Fedora
32 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
31 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
.
Menadżer pakietów
deb/rpm :heavy_check_mark: :x: :x: :heavy_check_mark:/:x: :x:
Flatpak :heavy_check_mark: :x: :x: :x: :x:
Snap :heavy_check_mark: :heavy_check_mark: :construction: :construction: :heavy_check_mark: :x: :heavy_check_mark:
msi :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
exe :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
tar.bz2 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
.
Architektura
32 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
64 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:

Wymagania

min_ansible_version: 2.8

Zmienne roli

---
#--- Edycja Firefox ---#

firefox_edition: stabilna

# https://www.mozilla.org/en-US/firefox/channel/desktop/#beta
# firefox_edition: beta

# https://www.mozilla.org/en-US/firefox/channel/desktop/#nightly
# firefox_edition: nightly

# https://www.mozilla.org/en/firefox/developer/
# firefox_edition: developer

# https://www.mozilla.org/en/firefox/enterprise/
# firefox_edition: esr

#--- Metoda instalacji Firefox ---#

# https://repology.org/project/firefox/versions
firefox_method_install: menedżer-pakietów

# https://en.wikipedia.org/wiki/Flatpak
# https://flathub.org/apps/details/org.mozilla.firefox
# firefox_method_install: flatpak

# https://en.wikipedia.org/wiki/Snappy_(package_manager)
# https://snapcraft.io/firefox
# firefox_method_install: snap

# https://www.mozilla.org/en/firefox/download/thanks/
# firefox_method_install: tar.bz2

#--- Architektura Firefox ---#

firefox_arch: 64

# https://en.wikipedia.org/wiki/64-bit_computing
# firefox_arch: 32

#--- Język Firefox ---#

# Domyślna wartość: firefox_lang == język twojego systemu Windows

# firefox_lang: ru
# firefox_lang: en-US

#--- Adresy URL API Firefox ---#

firefox_versions_url: https://product-details.mozilla.org/1.0/firefox_versions.json

# Potrzebne dla Windows.
firefox_available_languages_url: https://product-details.mozilla.org/1.0/languages.json

#--- Typ instalatora Firefox. Tylko Windows!!! ---#

firefox_win_installer_type: exe

# firefox_win_installer_type: msi

#--- Lokalne ścieżki pobierania Firefox ---#

firefox_windows_local_download_path: '{{ ansible_env.TMP }}\firefox'

firefox_linux_local_download_path: '/var/cache/firefox'

#--- Ścieżki instalacji Firefox. Tylko dla tar.bz2 ---#

firefox_linux_install_path: '/opt/firefox/{{ firefox_edition }}'

firefox_linux_path_to_bin: '{{ firefox_linux_install_path }}/firefox/firefox'

firefox_linux_path_to_icon: '{{ firefox_linux_install_path }}/firefox/browser/chrome/icons/default/default128.png'

#--- Algorytm sumy kontrolnej Firefox ---#

firefox_checksum_algorithm: sha256

# firefox_checksum_algorithm: sha512

#--- Wersja Firefox ---#

firefox_version: najnowsza

# firefox_version: 75.0

#--- Sekcja repozytoriów Apt ---#

# https://repolib.readthedocs.io/en/latest/deb822-format.html

# Jeśli *NIE* używasz apt-cacher-ng ani innego proxy do buforowania - wybierz "https".
http_or_https: http
# http_or_https: https

# https://www.opennet.ru/opennews/art.shtml?num=60019

mozilla_apt_repo_path_to_sources: /etc/apt/sources.list.d/mozilla.sources

mozilla_gpg_repo_key_url: https://packages.mozilla.org/apt/repo-signing-key.gpg

mozilla_apt_repo_architectures:
  - amd64
mozilla_apt_repo_components:
  - main
mozilla_apt_repo_suites:
  - mozilla
mozilla_apt_repo_types:
  - deb
mozilla_apt_repo_uris:
  - "{{ http_or_https }}://packages.mozilla.org/apt"
mozilla_apt_repo_x_repolib_name: Oficjalne repozytorium Mozilli

Zależności

Jeśli chcesz zainstalować przez Flatpak

Wersja pierwsza:

cd /ścieżka/do/twoich/ról/ansible
git clone https://github.com/don-rumata/ansible-role-install-flatpak

Wersja druga:

ansible-galaxy install don_rumata.ansible_role_install_flatpak

Jeśli chcesz zainstalować przez Snap

Wersja pierwsza:

cd /ścieżka/do/twoich/ról/ansible
git clone https://github.com/don-rumata/ansible-role-install-snap

Wersja druga:

ansible-galaxy install don_rumata.ansible_role_install_snap

Jeśli chcesz wdrożyć na Windows 7

Pobierz i zainstaluj Windows Management Framework 5.1

Jak to zrobić

Szybka konfiguracja WinRM dla Windows: https://ru.stackoverflow.com/a/949971/191416

Przykładowe playbooki

Zainstaluj najnowszą stabilną wersję Firefox na Windows lub Linux przez menedżer pakietów twojego dystrybucji:

install-firefox.yml:

- name: Instalacja FireFox
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - ansible-role-install-firefox
  tasks:

install-firefox-over-flatpak-v1.yml:

- name: Instalacja FireFox
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - ansible-role-install-flatpak
    - ansible-role-install-firefox
  vars:
    firefox_method_install: flatpak
  tasks:

install-firefox-over-snap-v2.yml:

- name: Instalacja FireFox
  hosts: all
  strategy: free
  serial:
    - "100%"
  roles:
    - don_rumata.ansible_role_install_snap
    - ansible-role-install-firefox
  vars:
    firefox_method_install: snap
  tasks:

Licencja

Licencja Apache, wersja 2.0

Informacje o autorze

don Rumata

TODO

  • Dodaj testy.

  • Dodaj więcej testów.

  • Dodaj ArchLinux firefox-i18n-{{ system_lang }}

  • Dodaj własne języki.

  • Dodaj pobieranie linków przez http-header

  • Dodaj uninstall.yml

Podziękowania

Zainstaluj
ansible-galaxy install don_rumata.ansible_role_install_firefox
Licencja
apache-2.0
Pobrania
113
Właściciel
Здесь все бесполезно. Знаний не хватает, а золото теряет цену, потому что опаздывает.