staticdev.firefox

Ansible Role: Firefox

Tests

This role installs Firefox from the official PPA repository and can create profiles with extensions. The extensions are installed but need to be activated manually in Firefox.

Note: On Debian, this will remove the ESR version in favor of the more up-to-date releases from the PPA.

Requirements

The requests library must be installed on the remote host to add extensions. The operating system of the remote host is supported; you can check it on ansible-galaxy staticdev/firefox.

Role Variables

Default Directory for Profiles

firefox_home: ~/.mozilla/firefox

Profile Settings

The firefox_profiles is an object where profile names are used as keys. For each profile, you can list the extension names under extensions. These extensions will be installed for that profile. Additionally, you can specify a list of preference key-value pairs under preferences. These settings are specific to each profile and will be saved in the user.js file of the profile.

Example Playbook

- hosts: localhost

  vars:
    firefox_profiles:
      default:
        extensions:
          - ublock-origin
        preferences:
          network.cookie.cookieBehavior: 1
          privacy.donottrackheader.enabled: true
          datareporting.healthreport.uploadEnabled: false
      secondprofile:
        extensions:
          - adblock-plus
        preferences:
          privacy.donottrackheader.enabled: false
          privacy.trackingprotection.enabled: false
          signon.rememberSignons: false
          datareporting.healthreport.uploadEnabled: false

  roles:
    - staticdev.firefox

License

MIT

Author Information

staticdev

Credits

This Ansible role is a modified version of the ansible-firefox originally made by GitHub user unrblt and updated by basvandenbrink.

Informazioni sul progetto

Create and configure Firefox profiles and download extensions.

Installa
ansible-galaxy install staticdev.firefox
Licenza
mit
Download
3.9k
Proprietario