|
|
@ -2,20 +2,26 @@
|
|
|
|
any_errors_fatal: true
|
|
|
|
any_errors_fatal: true
|
|
|
|
hosts: test-targets
|
|
|
|
hosts: test-targets
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- custom_python_detect_environment:
|
|
|
|
|
|
|
|
register: lout
|
|
|
|
|
|
|
|
|
|
|
|
# Can't use pip module because you can't fricking just create a virtualenv,
|
|
|
|
# Can't use pip module because it can't create virtualenvs, must call it
|
|
|
|
# must call it directly.
|
|
|
|
# directly.
|
|
|
|
- shell: virtualenv /tmp/issue_152_virtualenv
|
|
|
|
- shell: virtualenv /tmp/issue_152_virtualenv
|
|
|
|
|
|
|
|
when: lout.python_version != '2.6'
|
|
|
|
|
|
|
|
|
|
|
|
- custom_python_detect_environment:
|
|
|
|
- custom_python_detect_environment:
|
|
|
|
vars:
|
|
|
|
vars:
|
|
|
|
ansible_python_interpreter: /tmp/issue_152_virtualenv/bin/python
|
|
|
|
ansible_python_interpreter: /tmp/issue_152_virtualenv/bin/python
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
|
|
|
|
when: lout.python_version != '2.6'
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- out.sys_executable == "/tmp/issue_152_virtualenv/bin/python"
|
|
|
|
- out.sys_executable == "/tmp/issue_152_virtualenv/bin/python"
|
|
|
|
|
|
|
|
when: lout.python_version != '2.6'
|
|
|
|
|
|
|
|
|
|
|
|
- file:
|
|
|
|
- file:
|
|
|
|
path: /tmp/issue_152_virtualenv
|
|
|
|
path: /tmp/issue_152_virtualenv
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
when: lout.python_version != '2.6'
|
|
|
|