Installs firefox and optionally creates profiles with extensions. Extensions are installed but need to be manually enabled from firefox.
requests is required on the remote host to install extensions.
firefox_home: ~/.mozilla/firefox
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.
- hosts: localhost
vars:
firefox_profiles:
default:
extensions:
- ublock-origin
preferences:
privacy.donottrackheader.enabled: "true"
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:
- basvandenbrink.firefox
This Ansible role is a heavily modified version of the Ansible role created by GitHub user unrblt.
GPLv2