mitogen/tests/ansible/regression/issue_152__virtualenv_pytho...

22 lines
597 B
YAML

- name: regression/issue_152__virtualenv_python_fails.yml
any_errors_fatal: true
hosts: test-targets
tasks:
# Can't use pip module because you can't fricking just create a virtualenv,
# must call it directly.
- shell: virtualenv /tmp/issue_152_virtualenv
- custom_python_detect_environment:
vars:
ansible_python_interpreter: /tmp/issue_152_virtualenv/bin/python
register: out
- assert:
that:
- out.sys_executable == "/tmp/issue_152_virtualenv/bin/python"
- file:
path: /tmp/issue_152_virtualenv
state: absent