From c8d55818995a0ffbbf989f7e6cb8a4631de255e4 Mon Sep 17 00:00:00 2001 From: bmeehan Date: Fri, 16 Aug 2024 22:44:02 +1000 Subject: [PATCH] ITPLT-3960 really ugly work-around to prevent dnf removing cache files --- roles/product_common/tasks/amazon-2023.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/product_common/tasks/amazon-2023.yml b/roles/product_common/tasks/amazon-2023.yml index 2bcf674..857336b 100644 --- a/roles/product_common/tasks/amazon-2023.yml +++ b/roles/product_common/tasks/amazon-2023.yml @@ -90,13 +90,13 @@ - name: set facts for the path and the basename of the temurin file ansible.builtin.set_fact: - temurin_src_path: "{{ item.path }}" + temurin_file_path: "{{ item.path }}" temurin_file_name: "{{ item.path | basename }}" loop: "{{ temurin_rpm_file.files | flatten }}" - name: Install JDK from cache copy of the rpm file - keepcache ansible.builtin.command: - cmd: "dnf -y install {{ temurin_file_name }} --setopt=installonly_limit=3 --setopt=keepcache=1" + cmd: "dnf -y install {{ temurin_file_path }} --setopt=installonly_limit=3 --setopt=keepcache=1" register: dnf_installed when: