From 8f685d383330836caa95ab974279a318764d23a4 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Wed, 26 Nov 2025 18:11:08 +0100 Subject: Revert adding user.js config Since the configs were mainly to control UI pref (which is not usable with user.js, as it will always override manual customization) The rest of the features provided by user.js isn't necessary and are already covered by policies. So for now, I'm removing this user.js integration, maybe revisit it later if it's proven to be useful, ATM, it complicates and brittles the setup without providing any additional value. --- roles/firefox/tasks/main.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'roles/firefox/tasks') diff --git a/roles/firefox/tasks/main.yml b/roles/firefox/tasks/main.yml index e354005f..a412df0c 100644 --- a/roles/firefox/tasks/main.yml +++ b/roles/firefox/tasks/main.yml @@ -8,35 +8,6 @@ name: "{{ firefox_package }}" state: "present" -- name: "Initialize Firefox default profile" - ansible.builtin.command: "timeout 3 firefox --headless" - failed_when: false - args: - creates: "{{ firefox_folder }}/profiles.ini" - changed_when: false - -- name: "Find default Firefox profile directory" - ansible.builtin.find: - paths: "{{ firefox_folder }}" - patterns: "*.default*" - file_type: "directory" - register: firefox_default_profile - -- name: "Set Firefox profile path" - ansible.builtin.set_fact: - firefox_profile_path: "{{ firefox_default_profile.files[0].path }}" - when: firefox_default_profile.matched > 0 - -- name: "Set firefox_user_prefs fact" - ansible.builtin.set_fact: - firefox_user_prefs: "{{ firefox_default_user_prefs | combine(firefox_user_prefs_override) }}" - -- name: "Deploy user.js to Firefox profile" - ansible.builtin.template: - src: "user.js.j2" - dest: "{{ firefox_profile_path }}/user.js" - mode: "0644" - - name: "Install browserpass extension for Firefox" ansible.builtin.include_tasks: "install_browserpass.yml" when: firefox_install_browserpass | default(false) -- cgit v1.2.3