Add config for Firefox
This commit is contained in:
parent
786e139ddf
commit
c91c84c29b
3 changed files with 13 additions and 0 deletions
2
roles/home/files/user.js
Normal file
2
roles/home/files/user.js
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
user_pref("browser.startup.homepage", "about:blank");
|
||||||
|
user_pref("browser.newtabpage.enabled", false);
|
10
roles/home/tasks/firefox.yml
Normal file
10
roles/home/tasks/firefox.yml
Normal 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
|
|
@ -4,3 +4,4 @@
|
||||||
- include: shell.yml
|
- include: shell.yml
|
||||||
- include: emacs.yml
|
- include: emacs.yml
|
||||||
- include: mate.yml
|
- include: mate.yml
|
||||||
|
- include: firefox.yml
|
||||||
|
|
Loading…
Reference in a new issue