Debian Codegraph @

test/integration/targets/pip/tasks/main.yml

raw
1 # Current pip unconditionally uses md5.
2 # We can re-enable if pip switches to a different hash or allows us to not check md5.
3
4 - include_tasks:
5 file: break_system_packages.yml
6
7 - name: remember selected virtualenv command
8 set_fact:
9 virtualenv: "{{ ansible_python_interpreter ~ ' -m venv' }}"
10
11 - block:
12 - name: install git, needed for repo installs
13 package:
14 name: git
15 state: present
16 when: ansible_distribution not in ["MacOSX", "Alpine"]
17 register: git_install
18
19 - name: ensure wheel is installed
20 pip:
21 name: wheel
22 extra_args: "-c {{ remote_constraints }}"
23
24 - include_tasks: pip.yml
25
26 - include_tasks: url_packages.yml
27
28 - include_tasks: no_setuptools.yml
29 always:
30 - name: platform specific cleanup
31 include_tasks: "{{ cleanup_filename }}"
32 with_first_found:
33 - "{{ ansible_distribution | lower }}_cleanup.yml"
34 - "default_cleanup.yml"
35 loop_control:
36 loop_var: cleanup_filename
37 when: ansible_fips|bool != True
38 module_defaults:
39 pip:
40 virtualenv_command: "{{ virtualenv }}"