diff --git a/tasks/cuda_init.yml b/tasks/cuda_init.yml index 258b5e4..e49274f 100644 --- a/tasks/cuda_init.yml +++ b/tasks/cuda_init.yml @@ -54,6 +54,6 @@ when: - reg_cuda_gpu_name0.stat.exists is defined - reg_cuda_gpu_name0.stat.exists == False - - cuda_init_restart_service + - cuda_init_restart_service|bool # vim:ft=ansible: diff --git a/tasks/main.yml b/tasks/main.yml index 6d846f8..f874f7d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -30,7 +30,7 @@ src: cuda.sh.j2 dest: /etc/profile.d/cuda.sh mode: 0755 - when: cuda_bash_profile + when: cuda_bash_profile|bool - include_tasks: cuda_init.yml when: cuda_init == True