Add config for Firefox

This commit is contained in:
Anthony Rose 2019-10-03 15:15:29 +01:00
parent 786e139ddf
commit c91c84c29b
3 changed files with 13 additions and 0 deletions

2
roles/home/files/user.js Normal file
View file

@ -0,0 +1,2 @@
user_pref("browser.startup.homepage", "about:blank");
user_pref("browser.newtabpage.enabled", false);

View file

@ -0,0 +1,10 @@
---
- name: Check for profiles.ini
stat:
path: "{{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini"
register: profile_ini
- name: Get Firefox profile name
copy:
src: user.js
dest: "{{ ansible_env.HOME }}/.mozilla/firefox/{{ lookup('ini', 'Path section=Profile0 file={{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini') }}/user.js"
when: profile_ini.stat.exists

View file

@ -4,3 +4,4 @@
- include: shell.yml
- include: emacs.yml
- include: mate.yml
- include: firefox.yml