From 0515b224836370e9d7398b5e4e85f894a31ef080 Mon Sep 17 00:00:00 2001 From: Dibyendu Jana <34668540+d-jana@users.noreply.github.com> Date: Tue, 4 Feb 2025 16:07:11 +0530 Subject: [PATCH] Fixing AgnosticD code with variable to choose correct package for both RhEL8 or RHEL 9 (#9027) * Install rhel/9 package for Azure CLI repository * Update pre_software.yml to any version --------- Co-authored-by: Andrew Jones --- .../open-environment-azure-subscription/pre_software.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/configs/open-environment-azure-subscription/pre_software.yml b/ansible/configs/open-environment-azure-subscription/pre_software.yml index 948a81680a7..e31653c784d 100644 --- a/ansible/configs/open-environment-azure-subscription/pre_software.yml +++ b/ansible/configs/open-environment-azure-subscription/pre_software.yml @@ -84,7 +84,7 @@ - name: Add Azure CLI repository ansible.builtin.yum: state: present - name: https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm + name: https://packages.microsoft.com/config/rhel/{{ ansible_facts['distribution_major_version'] }}/packages-microsoft-prod.rpm retries: 5 - name: Install Azure CLI package