From abd61e6f994080b3716545e251ddc02922ebb750 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 Aug 2022 12:20:13 +0100 Subject: [PATCH] Configure Firefox on MacOS --- roles/home-gui/tasks/firefox.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/home-gui/tasks/firefox.yml b/roles/home-gui/tasks/firefox.yml index 69dea51..fe7e01d 100644 --- a/roles/home-gui/tasks/firefox.yml +++ b/roles/home-gui/tasks/firefox.yml @@ -31,3 +31,12 @@ src: user.js dest: "{{ ansible_env.HOME }}/.var/app/org.mozilla.firefox/.mozilla/firefox/{{ lookup('ini', 'Path section=Profile0 file={{ ansible_env.HOME }}/.var/app/org.mozilla.firefox/.mozilla/firefox/profiles.ini') }}/user.js" when: profile_ini_flatpak.stat.exists +- name: Check for MacOS profiles.ini + ansible.builtin.stat: + path: "{{ ansible_env.HOME }}/Library/Application Support/Firefox/profiles.ini" + register: profile_ini_macos +- name: Copy Firefox preferences to regular Profile0 + ansible.builtin.copy: + src: user.js + dest: "{{ ansible_env.HOME }}/Library/Application Support/Firefox/{{ lookup('ini', 'Path section=Profile0 file={{ ansible_env.HOME }}/Library/Application Support/Firefox/profiles.ini') }}/user.js" + when: profile_ini_macos.stat.exists