Merge "[CI] Do not set ansible_python_interpreter for Zuul"

This commit is contained in:
Zuul 2021-06-28 15:37:30 +00:00 committed by Gerrit Code Review
commit 337e9f3f83
3 changed files with 7 additions and 12 deletions

View File

@ -110,7 +110,6 @@
- ^tox\.ini$
vars:
publisher: false
ansible_python_interpreter: python3
extra-vars:
kolla_logs_dir: "{{ zuul_output_dir }}/logs/kolla"
kolla_build_logs_dir: "{{ kolla_logs_dir }}/build"

View File

@ -38,12 +38,11 @@
when:
ansible_os_family == "Debian"
- name: Create virtualenv
command: python3 -m virtualenv {{ virtualenv_path }} --python python3
- name: Install kolla
pip:
name: .
chdir: "{{ zuul.project.src_dir }}"
virtualenv: "{{ virtualenv_path }}"
virtualenv_python: python3
command: "{{ virtualenv_path }}/bin/python -m pip install {{ zuul.project.src_dir }}"
- name: Configure Docker repo for Debian/Ubuntu
block:

View File

@ -1,12 +1,9 @@
---
- hosts: all
vars:
# NOTE(yoctozepto): We need Docker SDK, the best source is Kolla venv.
ansible_python_interpreter: "{{ virtualenv_path }}/bin/python"
tasks:
- name: Ensure docker python SDK is installed
become: true
pip:
name: "docker"
state: present
- name: List all containers
docker_host_info:
images: yes