Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 8, 2025. It is now read-only.

staticdev/ansible-role-firefox

Repository files navigation

Ansible role: Firefox

Tests

DEPRECATED: this project is not maintained anymore in favor direct installation with nix package manager and Nixpkgs.

Installs Firefox from official PPA repository and optionally creates profiles with extensions. Extensions are installed but need to be manually enabled from Firefox.

Note: on Debian it will remove the ESR version in favor to PPA more up-to-date releases.

Requirements

requests is required on the remote host to install extensions. The OS of the remote host is supported, see ansible-galaxy staticdev/firefox.

Role Variables

Default directory for profiles

firefox_home: ~/.mozilla/firefox

Profile settings

The firefox_profiles is object with profile names als fields. For each profile, a list of extension names can be specified under the field extensions. These extensions will be installed for that profiles. Secondly, a list of preference key-value pairs can be specified under the field preferences. These are also profile-specific and will be put or modified 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 created by GitHub user unrblt and modified by basvandenbrink.

About

Ansible role to install Firefox with multiple profiles (each with its own settings and extensions)

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

  • Python 100.0%

AltStyle によって変換されたページ (->オリジナル) /