summaryrefslogtreecommitdiffstats
path: root/roles/firefox/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-24 22:16:43 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-24 22:29:51 +0100
commitbb251e5e6066d4eb89cdb70f682dfe7a88030a13 (patch)
tree8a68bc1705bea688eb8b5e63307cc6323a4e6826 /roles/firefox/meta
parenta41a92c635d7a4d5a72f55869082f1a76623cd45 (diff)
Add initial firefox role implementation with only GNOME support for pass
Diffstat (limited to 'roles/firefox/meta')
-rw-r--r--roles/firefox/meta/argument_specs.yml136
-rw-r--r--roles/firefox/meta/main.yml21
2 files changed, 157 insertions, 0 deletions
diff --git a/roles/firefox/meta/argument_specs.yml b/roles/firefox/meta/argument_specs.yml
new file mode 100644
index 00000000..ebae7a94
--- /dev/null
+++ b/roles/firefox/meta/argument_specs.yml
@@ -0,0 +1,136 @@
+---
+# NOTE: The defaults below are sensible role defaults and are not meant to be changed directly.
+# Use the override variables (firefox_policies_override, firefox_extra_extensions) to customize behavior.
+argument_specs:
+ main:
+ short_description: "Configure firefox settings and policies"
+ description: "Configure firefox settings and policies"
+ options:
+ firefox_policies_override:
+ type: "dict"
+ description: "Override default firefox policies"
+ default: {}
+ firefox_extra_extensions:
+ type: "dict"
+ description: "Extra firefox extensions to install via policies (added to the default extensions)"
+ default: {}
+ firefox_default_extensions:
+ # Default extensions to be installed in Firefox via policies
+ # - uBlock Origin
+ # - Vimium FF
+ # - Privacy Badger
+ # - Privacy Possum
+ # - LanguageTool
+ type: "dict"
+ description: "Default firefox extensions configurations to install via policies"
+ default:
+ "*":
+ installation_mode: "allowed"
+ allowed_types:
+ - "extension"
+ - "theme"
+ - "dictionary"
+ - "locale"
+ installation_mode: "force_installed"
+ install_url: "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"
+ "{d7742d87-e61d-4b78-b8a1-b469842139fa}":
+ installation_mode: "force_installed"
+ install_url: "https://addons.mozilla.org/firefox/downloads/latest/vimium-ff/latest.xpi"
+ "jid1-MnnxcxisBPnSXQ@jetpack":
+ installation_mode: "force_installed"
+ install_url: "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi"
+ "woop-NoopscooPsnSXQ@jetpack":
+ installation_mode: "force_installed"
+ install_url: "https://addons.mozilla.org/firefox/downloads/latest/privacy-possum/latest.xpi"
+ installation_mode: "force_installed"
+ install_url: "https://addons.mozilla.org/firefox/downloads/latest/languagetool/latest.xpi"
+ firefox_default_policies:
+ type: "dict"
+ description: "Default (sensible) policies for Firefox"
+ default:
+ AutofillAddressEnabled: true
+ AutofillCreditCardEnabled: false
+ BlockAboutAddons: false
+ BlockAboutConfig: false
+ BlockAboutProfiles: false
+ BlockAboutSupport: false
+ CaptivePortal: true
+ DisableDeveloperTools: false
+ DisableEncryptedClientHello: false
+ DisableFeedbackCommands: true
+ DisableFirefoxAccounts: false
+ DisableFirefoxScreenshots: true
+ DisableFirefoxStudies: true
+ DisablePasswordReveal: false
+ DisableProfileImport: true
+ DisableProfileRefresh: true
+ DisableSafeMode: false
+ DisableTelemetry: true
+ DisablePocket: true
+ DisplayBookmarksToolbar: "always"
+ DisplayMenuBar: "default-on"
+ DNSOverHTTPS:
+ Enabled: true
+ Fallback: true
+ DontCheckDefaultBrowser: true
+ EnableTrackingProtection:
+ Value: true
+ Category: "strict"
+ FirefoxHome:
+ Search: true
+ TopSites: true
+ SponsoredTopSites: false
+ SponsoredPocket: false
+ SponsoredStories: false
+ Highlights: true
+ Pocket: false
+ Stories: false
+ Snippets: true
+ Locked: false
+ FirefoxSuggest:
+ WebSuggestions: false
+ SponsoredSuggestions: false
+ ImproveSuggest: false
+ Locked: false
+ GenerativeAI:
+ Enabled: false
+ Locked: false
+ Homepage:
+ StartupPage: "homepage"
+ HttpsOnlyMode: "enabled"
+ LegacyProfiles: false
+ PasswordManagerEnabled: false
+ PictureInPicture:
+ Enabled: true
+ PostQuantumKeyAgreementEnabled: true
+ PrintingEnabled: true
+ PrivateBrowsingModeAvailability: 0
+ RequestedLocales:
+ - "en-US"
+ - "de"
+ SearchBar: "unified"
+ SearchEngines:
+ Default: "DuckDuckGo"
+ PreventInstalls: true
+ Remove:
+ - "Bing"
+ - "Ecosia"
+ - "Amazon"
+ - "eBay"
+ - "Twitter"
+ - "Wikipedia (en)"
+ SearchSuggestEnabled: true
+ ShowHomeButton: false
+ SkipTermsOfUse: true
+ TranslateEnabled: true
+ UserMessaging:
+ ExtensionRecommendations: false
+ FeatureRecommendations: false
+ UrlbarInterventions: false
+ SkipOnboarding: true
+ MoreFromMozilla: false
+ FirfoxLabs: false
+ UseSystemPrintDialog: true
+ VisualSearchEnabled: true
diff --git a/roles/firefox/meta/main.yml b/roles/firefox/meta/main.yml
new file mode 100644
index 00000000..3da12597
--- /dev/null
+++ b/roles/firefox/meta/main.yml
@@ -0,0 +1,21 @@
+---
+dependencies:
+ - role: "sed"
+ - role: "python"
+ - role: "bash"
+galaxy_info:
+ author: "a14m"
+ description: "Configure firefox settings and policies."
+ company: "kartoffeln.work GmbH."
+ license: "MIT"
+ min_ansible_version: "2.18"
+ platforms:
+ - name: "ArchLinux"
+ versions:
+ - "all"
+ - name: "Ubuntu"
+ versions:
+ - "noble"
+ - name: "Debian"
+ versions:
+ - "bookworm"