Fix change firefox from snap to apt version

This commit is contained in:
Przemek Grondek 2022-05-21 13:12:36 +02:00
parent bf6ca66f4b
commit ae950799a6
2 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,14 @@
community.general.snap:
name: firefox
state: absent
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"
- name: add ppa
apt_repository:

View File

@ -0,0 +1,6 @@
- name: Gather package facts
package_facts:
manager: apt
- debug:
msg: "{{ ansible_facts.packages.firefox[0].version }}"