diff --git a/roles/firefox/tasks/ppa.yml b/roles/firefox/tasks/ppa.yml index 9920319..883edf7 100644 --- a/roles/firefox/tasks/ppa.yml +++ b/roles/firefox/tasks/ppa.yml @@ -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: diff --git a/roles/test/tasks/main.yml b/roles/test/tasks/main.yml new file mode 100644 index 0000000..1f665b0 --- /dev/null +++ b/roles/test/tasks/main.yml @@ -0,0 +1,6 @@ +- name: Gather package facts + package_facts: + manager: apt + +- debug: + msg: "{{ ansible_facts.packages.firefox[0].version }}"