From 6e8c13c241bc9661d15fcee6bb4adaa66aad6c2c Mon Sep 17 00:00:00 2001 From: Daniel Oh Date: Fri, 22 Nov 2024 18:31:42 -0500 Subject: [PATCH] Fix the template issue in NFO operator (#8855) --- .../ocp4_workload_nvidia_gpu_setup/tasks/nfd_operator.yml | 2 +- .../nodefeature_discovery_sub.yaml.j2} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/{files/nodefeature_discovery_sub.yaml => templates/nodefeature_discovery_sub.yaml.j2} (100%) diff --git a/ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/tasks/nfd_operator.yml b/ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/tasks/nfd_operator.yml index 5d78f5f9108..24f5b2996e1 100644 --- a/ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/tasks/nfd_operator.yml +++ b/ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/tasks/nfd_operator.yml @@ -18,7 +18,7 @@ - name: Create NodeFeaturEDiscovery subscription kubernetes.core.k8s: state: present - definition: "{{ lookup('template', 'nodefeature_discovery_sub.yaml') | from_yaml }}" + definition: "{{ lookup('template', 'nodefeature_discovery_sub.yaml.j2') | from_yaml }}" register: subscription_result until: subscription_result is not failed retries: 30 diff --git a/ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/files/nodefeature_discovery_sub.yaml b/ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/templates/nodefeature_discovery_sub.yaml.j2 similarity index 100% rename from ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/files/nodefeature_discovery_sub.yaml rename to ansible/roles_ocp_workloads/ocp4_workload_nvidia_gpu_setup/templates/nodefeature_discovery_sub.yaml.j2