Configure Firefox on MacOS
This commit is contained in:
parent
200ba62653
commit
abd61e6f99
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue