Browse Source

Modifying when clause for AMD GPU deployment to avoid dependency on local hardware facts

Signed-off-by: Luke Wilson <luke.wilson@dell.com>
Luke Wilson 4 years ago
parent
commit
c02323728a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      roles/k8s_start_services/tasks/main.yml

+ 2 - 1
roles/k8s_start_services/tasks/main.yml

@@ -137,5 +137,6 @@
 - name: Deploy ROCm Device plugin
   command: "kubectl create -f '{{ rocm_device_plugin_yaml_url }}'"
   changed_when: true
-  when: ansible_local.inventory.amd_gpu > 0 
+  register: amd_gpu_enable
+  when: "'amdgpu-device-plugin' not in k8s_pods.stdout" 
   tags: init