diff --git a/roles/firefox/files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox b/roles/firefox/files/etc/apt/apt.conf.d/51unattended-upgrades-firefox similarity index 100% rename from roles/firefox/files/etc/apt/apt.copnf.d/51unattended-upgrades-firefox rename to roles/firefox/files/etc/apt/apt.conf.d/51unattended-upgrades-firefox diff --git a/roles/firefox/tasks/ppa.yml b/roles/firefox/tasks/ppa.yml index 2ac6aff..a4ca909 100644 --- a/roles/firefox/tasks/ppa.yml +++ b/roles/firefox/tasks/ppa.yml @@ -4,13 +4,17 @@ ansible.builtin.package_facts: manager: auto + - name: Print the package facts + ansible.builtin.debug: + var: ansible_facts.packages + - name: remove snap community.general.snap: name: firefox state: absent when: - - 'firefox' in ansible_facts.packages - - ansible_facts.packages['firefox'].version == "1:1snap1-0ubuntu2" + - "'firefox' in ansible_facts.packages" + - ansible_facts.packages['firefox'][0].version == "1:1snap1-0ubuntu2" - name: remove apt snap wrapper version apt: @@ -18,8 +22,8 @@ pkg: - firefox when: - - 'firefox' in ansible_facts.packages - - ansible_facts.packages['firefox'].version == "1:1snap1-0ubuntu2" + - "'firefox' in ansible_facts.packages" + - ansible_facts.packages['firefox'][0].version == "1:1snap1-0ubuntu2" - name: add ppa apt_repository: