Configure Firefox on MacOS

This commit is contained in:
Anthony Rose 2022-08-15 12:20:13 +01:00
parent 200ba62653
commit abd61e6f99

View file

@ -31,3 +31,12 @@
src: user.js 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" 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 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