Skip to content

Commit

Permalink
use when: something instead of when: something == True to make ansibl…
Browse files Browse the repository at this point in the history
…e galaxy happy
  • Loading branch information
VilleS1 committed Nov 18, 2019
1 parent 622eea6 commit 8fca620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
when: cuda_bash_profile|bool

- include_tasks: cuda_init.yml
when: cuda_init == True
when: cuda_init

# This is here because if we in the same playbook try to start slurmd without
# having run the cuda_init.sh script then slurmd doesn't start and the play fails.
# todo: reload nvidia modules/etc instead of restart
- name: flush the handlers - so that the node is rebooted after CUDA is installed and that the GPUs are initialized before we start slurm
meta: flush_handlers

when: gpu == True
when: gpu

# vim:ft=ansible:

0 comments on commit 8fca620

Please sign in to comment.