Add firefox policies for Linux, merge them with windows

This commit is contained in:
Gašper Fele-Žorž 2025-09-16 15:47:41 +02:00
parent 78e7df1fb1
commit eb4a2974ad
3 changed files with 28 additions and 16 deletions

View file

@ -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
}
}
}

View file

@ -31,3 +31,13 @@
- firefox - firefox
state: latest state: latest
allow_downgrade: True 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

View file

@ -8,19 +8,4 @@
- name: Set Firefox policies - name: Set Firefox policies
copy: copy:
dest: C:\Program Files\Mozilla Firefox\distribution\policies.json dest: C:\Program Files\Mozilla Firefox\distribution\policies.json
content: | src: policies.json
{
"policies": {
"DisableAppUpdate": true,
"DisableSystemAddonUpdate": true,
"DisableTelemetry": true,
"UserMessaging": {
"WhatsNew": false,
"ExtensionRecommendations": false,
"FeatureRecommendations": false,
"UrlbarInterventions": false,
"SkipOnboarding": true,
"MoreFromMozilla": false
}
}
}