From 62dde7026cde2fc84d53513ab32dffcc7072d20b Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 3 Sep 2022 15:53:24 +0200 Subject: [PATCH] Fix firefox role --- .../51unattended-upgrades-firefox | 0 roles/firefox/tasks/ppa.yml | 12 ++++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) rename roles/firefox/files/etc/apt/{apt.copnf.d => apt.conf.d}/51unattended-upgrades-firefox (100%) 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: