ansible-desktop/roles/firefox/tasks/ppa.yml
2022-07-14 20:50:56 +02:00

40 lines
970 B
YAML

- become: yes
block:
- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto
- name: remove snap
community.general.snap:
name: firefox
state: absent
when:
- 'firefox' in ansible_facts.packages
- ansible_facts.packages['firefox'].version == "1:1snap1-0ubuntu2"
- name: remove apt snap wrapper version
apt:
state: absent
pkg:
- firefox
when:
- 'firefox' in ansible_facts.packages
- ansible_facts.packages['firefox'].version == "1:1snap1-0ubuntu2"
- 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