From b598e2d1d5a8f2ef44b5037cdaf422ff3c53ca5c Mon Sep 17 00:00:00 2001 From: Jack Hodgkiss Date: Fri, 24 Jul 2026 16:08:04 +0100 Subject: [PATCH] feat: add support for updating cache on all systems Change-Id: I3d624ba0f73bc25bbcc08a19bec927e8ba761dc0 Signed-off-by: Jack Hodgkiss (cherry picked from commit bb21ffadfd8a8f34b239892bc024feffb546e90d) --- ansible/host-package-update.yml | 2 +- releasenotes/notes/update-dnf-cache-63b0249549118a3e.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/update-dnf-cache-63b0249549118a3e.yaml diff --git a/ansible/host-package-update.yml b/ansible/host-package-update.yml index 94b014ba1..f9cea32f8 100644 --- a/ansible/host-package-update.yml +++ b/ansible/host-package-update.yml @@ -16,5 +16,5 @@ name: "{{ host_package_update_packages }}" security: "{{ host_package_update_security | bool if ansible_facts.os_family == 'RedHat' else omit }}" state: latest - update_cache: "{{ True if ansible_facts.os_family == 'Debian' else omit }}" + update_cache: True become: true diff --git a/releasenotes/notes/update-dnf-cache-63b0249549118a3e.yaml b/releasenotes/notes/update-dnf-cache-63b0249549118a3e.yaml new file mode 100644 index 000000000..0f16102f0 --- /dev/null +++ b/releasenotes/notes/update-dnf-cache-63b0249549118a3e.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Adds support for updating cache during host package update on all + supported systems.