Fix firefox ppa for ubuntu
This commit is contained in:
parent
16489ecc0a
commit
98cb78d7af
@ -1,17 +1,25 @@
|
|||||||
- become: yes
|
- become: yes
|
||||||
block:
|
block:
|
||||||
|
- name: Gather the package facts
|
||||||
|
ansible.builtin.package_facts:
|
||||||
|
manager: auto
|
||||||
|
|
||||||
- name: remove snap
|
- name: remove snap
|
||||||
community.general.snap:
|
community.general.snap:
|
||||||
name: firefox
|
name: firefox
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_facts.packages.firefox[0].version == "1.1snap1-0ubuntu2"
|
when:
|
||||||
|
- "'firefox' in ansible_facts.packages"
|
||||||
|
- ansible_facts.packages['firefox'].version == "1:1snap1-0ubuntu2"
|
||||||
|
|
||||||
- name: remove apt snap wrapper version
|
- name: remove apt snap wrapper version
|
||||||
apt:
|
apt:
|
||||||
state: absent
|
state: absent
|
||||||
pkg:
|
pkg:
|
||||||
- firefox
|
- firefox
|
||||||
when: ansible_facts.packages.firefox[0].version == "1.1snap1-0ubuntu2"
|
when:
|
||||||
|
- "'firefox' in ansible_facts.packages"
|
||||||
|
- ansible_facts.packages['firefox'].version == "1:1snap1-0ubuntu2"
|
||||||
|
|
||||||
- name: add ppa
|
- name: add ppa
|
||||||
apt_repository:
|
apt_repository:
|
||||||
@ -28,4 +36,4 @@
|
|||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: latest
|
state: latest
|
||||||
pkg:
|
pkg:
|
||||||
- firefox
|
- firefox
|
||||||
|
Loading…
Reference in New Issue
Block a user