Moved browser extensions to configuration

This commit is contained in:
2025-04-01 12:24:52 +02:00
parent 887db59a57
commit 659c24eb14
7 changed files with 35 additions and 22 deletions

View File

@@ -1,7 +0,0 @@
{
"ExtensionInstallForcelist": [
"cjpalhdlnbpafiamejdnhcphjbkeiagm;https://clients2.google.com/service/update2/crx",
"oboonakemofpalcgghocfoadofidjkkk;https://clients2.google.com/service/update2/crx"
]
}

View File

@@ -21,7 +21,7 @@
mode: '0755'
- name: Copy the extensions policy file for Chromium
copy:
src: extensions_policy.json
template:
src: extensions_policy.json.j2
dest: /etc/chromium/policies/managed/extensions_policy.json
mode: '0644'

View File

@@ -0,0 +1,7 @@
{
"ExtensionInstallForcelist": [
{% for plugin in applications[application_id].plugins -%}
"{{ plugin }}"{% if not loop.last %},{% endif %}
{% endfor %}
]
}

View File

@@ -1,11 +0,0 @@
{
"policies": {
"Extensions": {
"Install": [
"https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi",
"https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi"
]
}
}
}

View File

@@ -11,7 +11,7 @@
mode: '0755'
- name: Deploy Firefox Enterprise Policies file
copy:
src: policies.json
template:
src: policies.json.j2
dest: "{{ firefox_policy_file }}"
mode: '0644'

View File

@@ -0,0 +1,12 @@
{
"policies": {
"Extensions": {
"Install": [
{% for plugin in applications[application_id].plugins -%}
"{{ plugin }}"{% if not loop.last %},{% endif %}
{% endfor %}
]
}
}
}