b75de51122
Change-Id: I768004272e3f700af6ab6e42e95a5418dc977989
28 lines
654 B
YAML
28 lines
654 B
YAML
---
|
|
- name: Blackduck pre
|
|
hosts: all
|
|
roles:
|
|
- role: ensure-java
|
|
- role: ensure-pip
|
|
tasks:
|
|
- name: Fetch detect
|
|
ansible.builtin.get_url:
|
|
url: https://detect.synopsys.com/detect8.sh
|
|
dest: "{{ zuul.project.src_dir }}/detect8.sh"
|
|
mode: "0755"
|
|
|
|
- name: Install requirements from requirements files
|
|
ansible.builtin.pip:
|
|
requirements: "{{ item }}"
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
loop:
|
|
- requirements.txt
|
|
- test-requirements.txt
|
|
|
|
- name: Install unzip
|
|
ansible.builtin.package:
|
|
name: unzip
|
|
state: present
|
|
become: true
|