workstation/roles/home/tasks/firefox.yml

11 lines
385 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
- 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