issue #477: one more conditional test.

This commit is contained in:
David Wilson 2019-01-27 04:44:24 +00:00
parent 59e5276af3
commit 9aff8edf50
1 changed files with 4 additions and 4 deletions

View File

@ -8,20 +8,20 @@
# Can't use pip module because it can't create virtualenvs, must call it
# directly.
- shell: virtualenv /tmp/issue_152_virtualenv
when: lout.python_version != '2.6'
when: lout.python_version > '2.6'
- custom_python_detect_environment:
vars:
ansible_python_interpreter: /tmp/issue_152_virtualenv/bin/python
register: out
when: lout.python_version != '2.6'
when: lout.python_version > '2.6'
- assert:
that:
- out.sys_executable == "/tmp/issue_152_virtualenv/bin/python"
when: lout.python_version != '2.6'
when: lout.python_version > '2.6'
- file:
path: /tmp/issue_152_virtualenv
state: absent
when: lout.python_version != '2.6'
when: lout.python_version > '2.6'