„firefox.yml“ ändern

This commit is contained in:
olli 2022-07-12 16:08:38 +02:00
parent 474b6c6ee3
commit e443820b93

View File

@ -3,103 +3,10 @@
tasks:
- name: Firefox policy
blockinfile:
path: /usr/lib/firefox/distribution/policies.json
mode: "0444"
ansible.builtin.copy:
src: policies.json
dest: /usr/lib/firefox/distribution/policies.json
owner: root
group: root
create: yes
marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: |
{
"policies": {
"Cookies": {
"AcceptThirdParty": "never",
"Default": true,
"ExpireAtSessionEnd": true,
"RejectTracker": true,
"FirefoxHome": {
"Search": true,
"TopSites": false,
"SponsoredTopSites": false,
"Highlights": false,
"Pocket": false,
"SponsoredPocket": false,
"Snippets": false,
"Locked": true
}
},
"DisableAppUpdate": true,
"DisableFirefoxStudies": true,
"DisableTelemetry": true,
"DisplayMenuBar": true,
"DontCheckDefaultBrowser": true,
"DisableFormHistory": true,
"DisablePocket": true,
"PromptForDownloadLocation": true,
"EnableTrackingProtection": {
"Value": true
},
"FirefoxHome": {
"Search": true,
"TopSites": false,
"Highlights": false,
"Pocket": false,
"Snippets": false,
"Locked": false
},
"ExtensionUpdate": true,
"Extensions": {
"Install": [
"https://addons.mozilla.org/firefox/downloads/latest/adblocker-ultimate/latest.xpi",
"https://addons.mozilla.org/firefox/downloads/latest/video-downloadhelper/latest.xpi",
"https://addons.mozilla.org/firefox/downloads/latest/nextcloud-passwords/latest.xpi",
"https://addons.mozilla.org/firefox/downloads/latest/smart-amazon-smile/latest.xpi"
]
},
"Homepage": {
"StartPage": "homepage",
"URL": "https://www.startpage.com/do/mypage.pl?prfh=enable_stay_controlEEE1N1NsuggestionsEEE1N1Ngeo_mapEEE1N1Nwikipedia_iaEEE1N1Nother_iaEEE1N1Ndisable_open_in_new_windowEEE0N1Ndisable_video_family_filterEEE1N1Nenable_post_methodEEE1N1Nenable_proxy_safety_suggestEEE1N1Ndisable_family_filterEEE1N1NsslEEE1N1Nlanguage_uiEEEdeutschN1NlanguageEEEdeutschN1Nwt_unitEEEcelsiusN1Nnum_of_resultsEEE20N1Nlang_homepageEEEs/default/de/"
},
"DisplayBookmarksToolbar": true,
"NoDefaultBookmarks": true,
"OverrideFirstRunPage": "",
"OverridePostUpdatePage": "",
"Preferences": {
"browser.urlbar.suggest.bookmark": true,
"browser.urlbar.suggest.history": false,
"browser.urlbar.suggest.openpage": false,
"extensions.pocket.enabled": false,
"extensions.getAddons.showPane": false,
"places.history.enabled": false,
"security.ssl.errorReporting.enabled": false
},
"Proxy": {
"AutoLogin": false,
"Locked": false,
"HTTPProxy": "localhost:3128",
"Mode": "none",
"SOCKSVersion": 4,
"UseHTTPProxyForAllProtocols": true,
"UseProxyForDNS": true
},
"SanitizeOnShutdown": true,
"SearchEngines": {
"Add": [
{
"Name": "Startpage",
"URLTemplate": "https://www.startpage.com/do/search/q={searchTerms}",
"Method": "POST",
"IconURL": "https://www.startpage.com/favicon.ico",
"Description": "Startpage",
"PostData": "name=value&q={searchTerms}",
"SuggestURLTemplate": "https://www.startpage.com/suggestions/q={searchTerms}"
}
],
"Default": "Google",
"Remove": ["Bing", "eBay", "Amazon.de" ]
},
"SearchBar": "separate"
}
}
mode: '0444'
backup: yes