Skip to content

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

Notifications You must be signed in to change notification settings

jorp/ansible-firefox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firefox-addons

Create and configure Firefox profiles and download extensions

Requirements

requests is required on the remote host to install extensions.

Role Variables

Default directory for profiles

firefox_home: ~/.mozilla/firefox

Profile settings

The firefox_profiles is object with profile names as 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-release:
        extensions:
          - ublock-origin
        preferences:
          privacy.donottrackheader.enabled: true
          browser.aboutConfig.showWarning: false
          privacy.trackingprotection.enabled: true
          signon.rememberSignons: false
          datareporting.healthreport.uploadEnabled: false
      bob:
        extensions:
          - adblock-plus
        preferences:
          privacy.donottrackheader.enabled: false
          privacy.trackingprotection.enabled: false
          signon.rememberSignons: false
          datareporting.healthreport.uploadEnabled: false

  roles:
     - firefox-addons

Clone into your $ANSIBLE_ROLES_PATH

Credits

This Ansible role is a heavily modified version of the Ansible role created by GitHub user unrblt.

License

GPLv2

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%