validations-common/zuul.d/playbooks/pre.yml
Sorin Sbarnea 99050941f4 Switch to ensure-docker role
install-docker is replaced by ensure-docker as documented on:
https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/install-docker/README.rst

Change-Id: I639b17a529ce38b24ada865d628813ab3e37cef7
2020-04-15 09:16:12 +01:00

29 lines
807 B
YAML

---
- hosts: all
pre_tasks:
- name: Ensure output dirs
file:
path: "{{ ansible_user_dir }}/zuul-output/logs"
state: directory
- name: Setup bindep
pip:
name: "bindep"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_site_packages: true
- name: Run bindep
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate
{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/scripts/bindep-install
become: true
changed_when: false
- name: Setup test-python
pip:
requirements: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/molecule-requirements.txt"
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_site_packages: true
roles:
- role: ensure-docker