From ab83e7c30c66fc8af971a5e3cc127c4a95420827 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 22 Dec 2024 20:27:33 +0100 Subject: [PATCH] fix(base_system): correctly check for the dnf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‹dnf5› presents itself as ‹dnf5› Signed-off-by: Matej Focko --- roles/base_system/tasks/upgrade.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base_system/tasks/upgrade.yml b/roles/base_system/tasks/upgrade.yml index 34c8659..eac6d50 100644 --- a/roles/base_system/tasks/upgrade.yml +++ b/roles/base_system/tasks/upgrade.yml @@ -10,7 +10,7 @@ ansible.builtin.dnf: name: "*" state: latest - when: ansible_facts.pkg_mgr == "dnf" + when: ansible_facts.pkg_mgr.startswith("dnf") - name: Upgrade all packages with ‹zypper› community.general.zypper: