From ee1a3b3e5a72f2e6657386337ae4c985fee4ab90 Mon Sep 17 00:00:00 2001 From: Ullli Date: Wed, 24 May 2023 18:05:11 +0200 Subject: [PATCH 1/1] =?utf8?q?Settings=20und=20policiy-Template=20f=C3=BCr?= =?utf8?q?=20Firefox-ESR=20erstellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- library/software-firefox_esr.yml | 12 ++++ templates/firefox_policies.json.j2 | 89 ++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 library/software-firefox_esr.yml create mode 100644 templates/firefox_policies.json.j2 diff --git a/library/software-firefox_esr.yml b/library/software-firefox_esr.yml new file mode 100644 index 0000000..a042eb0 --- /dev/null +++ b/library/software-firefox_esr.yml @@ -0,0 +1,12 @@ +--- + + +- name: create firefox-policies directory + file: + path: /etc/firefox/policies + state: directory +- name: copy firefox-policies config file + copy: + src: templates/firefox_policies.json.j2 + dest: /etc/firefox/policies/policies.json +... diff --git a/templates/firefox_policies.json.j2 b/templates/firefox_policies.json.j2 new file mode 100644 index 0000000..9ab2b41 --- /dev/null +++ b/templates/firefox_policies.json.j2 @@ -0,0 +1,89 @@ + + "policies": { + "DisableBuiltinPDFViewer": true, + "DisableFeedbackCommands": true, + "DisableFirefoxAccounts": true, + "DisableFirefoxStudies": true, + "DisablePocket": true, + "DisableProfileImport": true, + "DisableTelemetry": true, + "EnableTrackingProtection": { + "Cryptomining": true, + "Fingerprinting": true, + "Value": true + }, + "ExtensionSettings": { + "*": { + "allowed_types": [ + "extension", + "themes", + "dictionary", + "locale" + ], + "blocked_install_message": "Bitte wende Dich an die IT-AG.", + "install_sources": [ + "about:addons", + "https://addons.mozilla.org/" + ], + "installation_mode": "allowed" + }, + "CanvasBlocker@kkapsner.de": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/canvasblocker/latest.xpi", + "installation_mode": "blocked" + }, + "{74145f27-f039-47ce-a470-a662b129930a}": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/clearurls/latest.xpi", + "installation_mode": "blocked" + }, + "keepassxc-browser@keepassxc.org": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi", + "installation_mode": "normal_installed" + }, + "skipredirect@sblask": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/skip-redirect/latest.xpi", + "installation_mode": "blocked" + }, + "uBlock0@raymondhill.net": { + "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi", + "installation_mode": "force_installed" + } + }, + "FirefoxHome": { + "Highlights": false, + "Pocket": false, + "Search": true, + "Snippets": false, + "TopSites": true + }, + "FlashPlugin": { + "Default": false, + "Locked": true + }, + "Homepage": { + "StartPage": "homepage", + "URL": "{{ firefox-homepage }}" + }, + "NewTabPage": true, + "PasswordManagerEnabled": false, + "Preferences": { + "media.gmp-gmpopenh264.enabled": true, + "media.gmp-widevinecdm.enabled": true + }, + "PrimaryPassword": false, + "RequestedLocales": [ + "de", + "es-ES" + ], + "SearchEngines": { + "Default": "DuckDuckGo", + "DefaultPrivate": "DuckDuckGo", + "Remove": [ + "eBay", + "Amazon.com", + "Amazon.de", + "Google", + "Bing" + ] + } + } +} -- 2.39.5