Automatically install Firefox extensions
This commit is contained in:
12
roles/firefox/templates/policies.json.j2
Normal file
12
roles/firefox/templates/policies.json.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"policies": {
|
||||
"ExtensionSettings": {
|
||||
{% for extension in firefox_extensions %}
|
||||
{{ extension.id | to_json }}: {
|
||||
"installation_mode": "normal_installed",
|
||||
"install_url": {{ ('https://addons.mozilla.org/firefox/downloads/latest/' ~ extension.slug ~ '/latest.xpi') | to_json }}
|
||||
}{{ ',' if not loop.last else '' }}
|
||||
{% endfor %}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user