Update validate_postscripts_path.yml
# limitations under the License.
---
-- name: Initialize ofed_config_status
+- name: Initialize ofed_config_status and cuda_config_status
ansible.builtin.set_fact:
ofed_config_status: false
+ cuda_config_status: false
- name: Set ofed_config_status to true
ansible.builtin.set_fact:
- ofed_rhel_check not in mlnx_ofed_path
- provision_os | lower == os_supported_rhel or
provision_os | lower == os_supported_rocky
+
+- name: Set cuda_config_status to true
+ ansible.builtin.set_fact:
+ cuda_config_status: true
+ when: cuda_toolkit_path | default("", true) | length > 1
+
+- name: Warning - waiting for {{ warning_wait_time }} seconds
+ ansible.builtin.pause:
+ seconds: "{{ warning_wait_time }}"
+ prompt: "{{ cuda_rpm_empty_msg }}"
+ when: not cuda_config_status
+
+- name: Verify the cuda_toolkit_path
+ ansible.builtin.stat:
+ path: "{{ cuda_toolkit_path }}"
+ register: verify_cuda_path
+ when: cuda_config_status
+
+- name: Assert cuda_toolkit_path location
+ ansible.builtin.fail:
+ msg: "{{ cuda_toolkit_path_missing_msg }}"
+ when:
+ - cuda_config_status
+ - not verify_cuda_path.stat.exists
