You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/ansible-galaxy-collection-scm/tasks/test_supported_resolvelib_v...

26 lines
794 B
YAML

- vars:
venv_cmd: "{{ ansible_python_interpreter ~ ' -m venv' }}"
venv_dest: "{{ galaxy_dir }}/test_venv_{{ resolvelib_version }}"
block:
- name: install another version of resolvelib that is supported by ansible-galaxy
pip:
name: resolvelib
version: "{{ resolvelib_version }}"
state: present
virtualenv_command: "{{ venv_cmd }}"
virtualenv: "{{ venv_dest }}"
virtualenv_site_packages: True
- include_tasks: ./scm_dependency_deduplication.yml
args:
apply:
environment:
PATH: "{{ venv_dest }}/bin:{{ ansible_env.PATH }}"
ANSIBLE_CONFIG: '{{ galaxy_dir }}/ansible.cfg'
always:
- name: remove test venv
file:
path: "{{ venv_dest }}"
state: absent