From eb4a2974ade0ab63e16fa614540749fa02d20558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Fele-=C5=BDor=C5=BE?= Date: Tue, 16 Sep 2025 15:47:41 +0200 Subject: [PATCH] Add firefox policies for Linux, merge them with windows --- roles/firefox/files/policies.json | 17 +++++++++++++++++ roles/firefox/tasks/main_lin.yml | 10 ++++++++++ roles/firefox/tasks/main_win.yml | 17 +---------------- 3 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 roles/firefox/files/policies.json diff --git a/roles/firefox/files/policies.json b/roles/firefox/files/policies.json new file mode 100644 index 0000000..1d48a1d --- /dev/null +++ b/roles/firefox/files/policies.json @@ -0,0 +1,17 @@ +{ + "policies": { + "OverrideFirstRunPage": "https://ucilnica.fri.uni-lj.si", + "OverridePostUpdatePage": "https://ucilnica.fri.uni-lj.si", + "DisableAppUpdate": true, + "DisableSystemAddonUpdate": true, + "DisableTelemetry": true, + "UserMessaging": { + "WhatsNew": false, + "ExtensionRecommendations": false, + "FeatureRecommendations": false, + "UrlbarInterventions": false, + "SkipOnboarding": true, + "MoreFromMozilla": false + } + } +} diff --git a/roles/firefox/tasks/main_lin.yml b/roles/firefox/tasks/main_lin.yml index 8cd61d2..fa3fd83 100644 --- a/roles/firefox/tasks/main_lin.yml +++ b/roles/firefox/tasks/main_lin.yml @@ -31,3 +31,13 @@ - firefox state: latest allow_downgrade: True + +- name: Create Firefox policies directory + file: + path: /etc/firefox/policies + state: directory + +- name: Set Firefox policies + copy: + dest: /etc/firefox/policies/policies.json + src: policies.json diff --git a/roles/firefox/tasks/main_win.yml b/roles/firefox/tasks/main_win.yml index 53987a9..a1c24b3 100644 --- a/roles/firefox/tasks/main_win.yml +++ b/roles/firefox/tasks/main_win.yml @@ -8,19 +8,4 @@ - name: Set Firefox policies copy: dest: C:\Program Files\Mozilla Firefox\distribution\policies.json - content: | - { - "policies": { - "DisableAppUpdate": true, - "DisableSystemAddonUpdate": true, - "DisableTelemetry": true, - "UserMessaging": { - "WhatsNew": false, - "ExtensionRecommendations": false, - "FeatureRecommendations": false, - "UrlbarInterventions": false, - "SkipOnboarding": true, - "MoreFromMozilla": false - } - } - } + src: policies.json