apatel762 / home-infra

A repository containing all of the setup for my home infra (e.g. my laptop & soon, my server)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Configure Firefox with Ansible #101

Open apatel762 opened 2 years ago

apatel762 commented 2 years ago

Now that I've configured Brave Browser (Flatpak) with the playbook, it would be good to do the same with the system Firefox installation. You can use policies to configure the browser^1, similar to how you can do it with Chromium.

Would be good to get this set up so that I can use Firefox for most things and switch to Brave where I need a Chromium-based browser.

Interesting policies to play around with:

If it's difficult to get the policy to install uBlock Origin, the alternative would be to layer this package: mozilla-ublock-origin. I'd be surprised if it doesn't work though, because the example ExtensionSettings policy includes uBlock Origin in there...

{
  "policies": {
    "ExtensionSettings": {
      "*": {
        "blocked_install_message": "Custom error message.",
        "install_sources": ["https://yourwebsite.com/*"],
        "installation_mode": "blocked",
        "allowed_types": ["extension"]
      },
      "uBlock0@raymondhill.net": {
        "installation_mode": "force_installed",
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"
      },
      "https-everywhere@eff.org": {
        "installation_mode": "allowed"
      }
    }
  }
}