17 lines
569 B
YAML
17 lines
569 B
YAML
---
|
|
- name: GPU Feature Discovery | Check if already deployed
|
|
ansible.builtin.kubectl:
|
|
name: "gpu-feature-discovery"
|
|
kind: "DaemonSet"
|
|
namespace: "{{ nvidia_device_plugin_namespace }}"
|
|
state: "list"
|
|
environment:
|
|
KUBECONFIG: "{{ nvidia_device_plugin_kubeconfig }}"
|
|
PATH: "/usr/local/bin:/usr/bin:/bin"
|
|
register: _gfd_check
|
|
changed_when: false
|
|
|
|
- name: GPU Feature Discovery | Deploy via Helm (if enabled in values)
|
|
ansible.builtin.include_tasks: deploy.yml
|
|
when: nvidia_device_plugin_gfd.enabled and (_gfd_check.stdout | length == 0)
|