workstation/roles/home/tasks/firefox.yml

11 lines
397 B
YAML
Raw Normal View History

2019-10-03 14:15:29 +00:00
---
- name: Check for profiles.ini
stat:
path: "{{ ansible_env.HOME }}/.mozilla/firefox/profiles.ini"
register: profile_ini
2019-10-03 14:24:33 +00:00
- name: Copy Firefox preferences to Profile0
2019-10-03 14:15:29 +00:00
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