We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6228aec commit 3bc0160Copy full SHA for 3bc0160
playbooks/roles/mpivars/tasks/ubuntu.yml
@@ -11,7 +11,7 @@
11
stat:
12
path: /usr/mpi/gcc/{{ openmpi.stdout_lines[0] }}/bin/mpivars.sh
13
register: mpivars
14
- when: openmpi.stdout_lines[0] != ""
+ when: openmpi.stdout_lines | length > 0
15
16
17
- name: Create mpivars.sh
@@ -22,4 +22,4 @@
22
force: yes
23
owner: root
24
group: root
25
- when: openmpi.stdout_lines[0] != "" and not mpivars.stat.exists
+ when: openmpi.stdout_lines | length > 0 and not mpivars.stat.exists
0 commit comments