From 6045e8fbaa7b69d5fdbe2a11cf146d3caedee177 Mon Sep 17 00:00:00 2001 From: Xuemin Li Date: Wed, 4 Mar 2026 14:47:01 +0800 Subject: [PATCH] fix: run azure-specific installation after resource path created Move task "Install Azure-specific platform packages" after task "Create Azure HPC resource directories" to ensure the destination directories created first. This prevents errors like: "Destination directory /opt/hpc/azure/tests does not exist" when installing aznfs test scripts JIRA: RHELHPC-174 Signed-off-by: Xuemin Li --- tasks/main.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index e213818..346793f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -365,6 +365,20 @@ - name: Install Azure-specific platform packages when: ansible_facts["system_vendor"] == "Microsoft Corporation" block: + - name: Create Azure HPC resource directories + file: + path: "{{ item }}" + state: directory + owner: root + group: root + mode: '0755' + loop: + - "{{ __hpc_azure_resource_dir }}" + - "{{ __hpc_azure_resource_dir }}/bin" + - "{{ __hpc_azure_tools_dir }}" + - "{{ __hpc_azure_tests_dir }}" + - "{{ __hpc_azure_runtime_dir }}" + - name: Install Azure platform packages environment: AZNFS_NONINTERACTIVE_INSTALL: "1" @@ -384,20 +398,6 @@ group: root mode: '0755' -- name: Create Azure HPC resource directories - file: - path: "{{ item }}" - state: directory - owner: root - group: root - mode: '0755' - loop: - - "{{ __hpc_azure_resource_dir }}" - - "{{ __hpc_azure_resource_dir }}/bin" - - "{{ __hpc_azure_tools_dir }}" - - "{{ __hpc_azure_tests_dir }}" - - "{{ __hpc_azure_runtime_dir }}" - - name: Install NVidia driver # Note that currently the role supports only Microsoft Azure # When we add more cloud providers, we need to update this condition