7c60dadb9a
* Start of alpine testing * More updates * Add forgotten file * remove debug * Add alpine3 * equal * group 4 * group 4 * group 5 * Try to decrease test length * libuser only available in testing * Remove debug * Make loops target work on hosts without gnu date * Enable alpine testing * ci_complete * Don't specify uid for creating test user * ci_complete * Re-sort docker completion * use newer container image * ci_complete * fix indentation Co-authored-by: Matt Clay <matt@mystile.com> Co-authored-by: Matt Clay <matt@mystile.com>
33 lines
1 KiB
YAML
33 lines
1 KiB
YAML
# Current pip unconditionally uses md5.
|
|
# We can re-enable if pip switches to a different hash or allows us to not check md5.
|
|
|
|
- name: find virtualenv command
|
|
command: "which virtualenv virtualenv-{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}"
|
|
register: command
|
|
failed_when: not command.stdout_lines
|
|
|
|
- name: remember selected virtualenv command
|
|
set_fact:
|
|
virtualenv: "{{ command.stdout_lines[0] }}"
|
|
|
|
- block:
|
|
- name: install git, needed for repo installs
|
|
package:
|
|
name: git
|
|
state: present
|
|
when: ansible_distribution not in ["MacOSX", "Alpine"]
|
|
register: git_install
|
|
|
|
- include_tasks: pip.yml
|
|
always:
|
|
- name: platform specific cleanup
|
|
include_tasks: "{{ cleanup_filename }}"
|
|
with_first_found:
|
|
- "{{ ansible_distribution | lower }}_cleanup.yml"
|
|
- "default_cleanup.yml"
|
|
loop_control:
|
|
loop_var: cleanup_filename
|
|
when: ansible_fips|bool != True
|
|
module_defaults:
|
|
pip:
|
|
virtualenv_command: "{{ virtualenv }}"
|