customize-xfce-anisble/playbook/roles/role-one/tasks/customize-firefox.yml

22 lines
578 B
YAML

---
- name: Customize Firefox | Check if Firefox is installed
command: "which firefox"
register: firefox_check
ignore_errors: yes
- name: Customize Firefox | Run firefox - Make sure its initialised
shell:
cmd: "nohup firefox &"
when: firefox_check.rc == 0
- name: Customize Firefox | Close firefox if it's running
shell:
cmd: "pkill firefox"
ignore_errors: true
when: firefox_check.rc == 0
- name: Customize Firefox | Run Firefox Tweaks
shell: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f"
when: firefox_check.rc == 0