2022-05-17 22:27:32 +00:00
|
|
|
- become: yes
|
|
|
|
block:
|
|
|
|
- name: remove snap
|
|
|
|
community.general.snap:
|
|
|
|
name: firefox
|
|
|
|
state: absent
|
2022-05-21 11:12:36 +00:00
|
|
|
when: ansible_facts.packages.firefox[0].version == "1.1snap1-0ubuntu2"
|
|
|
|
|
|
|
|
- name: remove apt snap wrapper version
|
|
|
|
apt:
|
|
|
|
state: absent
|
|
|
|
pkg:
|
|
|
|
- firefox
|
|
|
|
when: ansible_facts.packages.firefox[0].version == "1.1snap1-0ubuntu2"
|
2022-05-17 22:27:32 +00:00
|
|
|
|
|
|
|
- name: add ppa
|
|
|
|
apt_repository:
|
|
|
|
repo: ppa:mozillateam/ppa
|
|
|
|
|
|
|
|
- name: set mozillateam higher priority
|
|
|
|
copy:
|
|
|
|
src: etc/apt/preferences.d/mozillateamppa
|
|
|
|
dest: /etc/apt/preferences.d/mozillateamppa
|
|
|
|
|
|
|
|
- name: install browser
|
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
state: latest
|
|
|
|
pkg:
|
|
|
|
- firefox
|