--- - name: Assert supported OS family ansible.builtin.assert: that: - ansible_os_family == "Debian" fail_msg: "nvidia_runtime_setup currently supports Debian-family distributions only." - name: Assert explicit driver package on non-Ubuntu systems ansible.builtin.assert: that: - ansible_distribution == "Ubuntu" or nvidia_runtime_driver_package | length > 0 fail_msg: >- On non-Ubuntu systems set nvidia_runtime_driver_package explicitly to a valid package name. - name: Assert optional package names are not empty when enabled ansible.builtin.assert: that: - not nvidia_runtime_install_cuda_toolkit or nvidia_runtime_cuda_package | length > 0 - not nvidia_runtime_install_container_toolkit or nvidia_runtime_container_toolkit_package | length > 0 fail_msg: "Optional package toggles are enabled but package names are missing."