Fix virtualenv detection

This checks if the task failed; which it never does because of the
failed_when: false.  What we want to check is the return value of that
check.

Change-Id: Ic975b53d60f44e8e743bcc31fc864cc8416b3a92
This commit is contained in:
Ian Wienand 2020-03-12 10:44:21 +11:00
parent 4985fd75b4
commit 7974a61f83
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
fail: fail:
msg: "Please ensure virtualenv is available!" msg: "Please ensure virtualenv is available!"
when: when:
- virtualenv_available | failed - virtualenv_available.rc != 0
- ansible_os_family != 'Darwin' - ansible_os_family != 'Darwin'
- name: Install PyYAML to parse the test matrix - name: Install PyYAML to parse the test matrix