2019-01-13 17:59:56 +00:00
|
|
|
- name: 'Firefox: Set base path'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- firefox
|
|
|
|
set_fact:
|
|
|
|
firefox_path: '~/.mozilla/firefox'
|
|
|
|
|
|
|
|
- name: 'Firefox: Discover profile path'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- firefox
|
|
|
|
set_fact:
|
|
|
|
profile_path: "{{ firefox_path }}/{{ lookup('ini', 'Path section=Profile0 file=' + firefox_path + '/profiles.ini') }}"
|
|
|
|
|
|
|
|
- name: 'Firefox: Lockdown config (relaxed)'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- firefox
|
|
|
|
block:
|
2019-01-13 19:01:35 +00:00
|
|
|
- name: 'Firefox: Download lockdown (relaxed) config'
|
2019-01-13 17:59:56 +00:00
|
|
|
get_url:
|
|
|
|
url: 'https://raw.githubusercontent.com/pyllyukko/user.js/relaxed/user.js'
|
|
|
|
dest: "{{ profile_path }}/user.js-lockdown"
|
|
|
|
mode: '0600'
|
|
|
|
force: yes
|
|
|
|
backup: yes
|
|
|
|
|
|
|
|
- name: 'Firefox: Replace user.js'
|
|
|
|
copy:
|
|
|
|
src: "{{ profile_path }}/user.js-lockdown"
|
|
|
|
dest: "{{ profile_path }}/user.js"
|
|
|
|
mode: '0600'
|
|
|
|
force: yes
|
|
|
|
backup: yes
|
2019-01-13 19:01:35 +00:00
|
|
|
|
|
|
|
- name: 'Firefox: Relaxing further'
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- firefox
|
|
|
|
block:
|
|
|
|
- name: 'Firefox: Allow searching from URL bar'
|
|
|
|
lineinfile:
|
|
|
|
path: "{{ profile_path }}/user.js"
|
|
|
|
state: present
|
|
|
|
regexp: 'keyword\.enabled'
|
|
|
|
line: 'user_pref("keyword.enabled", true);'
|