ansible-desktop/roles/firefox/tasks/ppa.yml

57 lines
1.5 KiB
YAML
Raw Normal View History

2022-05-17 22:27:32 +00:00
- become: yes
block:
2022-07-14 17:48:44 +00:00
- name: Gather the package facts
ansible.builtin.package_facts:
manager: auto
2022-09-03 13:53:24 +00:00
- name: Print the package facts
ansible.builtin.debug:
var: ansible_facts.packages
2022-05-17 22:27:32 +00:00
- name: remove snap
community.general.snap:
name: firefox
state: absent
2022-06-27 21:38:48 +00:00
when:
2022-09-03 13:53:24 +00:00
- "'firefox' in ansible_facts.packages"
- ansible_facts.packages['firefox'][0].version == "1:1snap1-0ubuntu2"
2022-09-03 20:40:35 +00:00
- name: remove snap
community.general.snap:
name: firefox
state: disabled
when:
- "'firefox' in ansible_facts.packages"
- ansible_facts.packages['firefox'][0].version == "1:1snap1-0ubuntu2"
- name: remove apt snap wrapper version
apt:
state: absent
pkg:
- firefox
2022-06-27 21:38:48 +00:00
when:
2022-09-03 13:53:24 +00:00
- "'firefox' in ansible_facts.packages"
- 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
2022-07-19 19:39:48 +00:00
- name: set mozillateam for unattended upgrades
copy:
src: etc/apt/apt.conf.d/51unattended-upgrades-firefox
dest: /etc/apt/apt.conf.d/51unattended-upgrades-firefox
2022-05-17 22:27:32 +00:00
- name: install browser
become: yes
apt:
update_cache: yes
state: latest
pkg:
2022-07-14 17:48:44 +00:00
- firefox