File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 110
110
- ^tox\.ini$
111
111
vars :
112
112
publisher : false
113
- ansible_python_interpreter : python3
114
113
extra-vars :
115
114
kolla_logs_dir : " {{ zuul_output_dir }}/logs/kolla"
116
115
kolla_build_logs_dir : " {{ kolla_logs_dir }}/build"
Original file line number Diff line number Diff line change 38
38
when :
39
39
ansible_os_family == "Debian"
40
40
41
+ - name : Create virtualenv
42
+ command : python3 -m virtualenv {{ virtualenv_path }} --python python3
43
+
41
44
- name : Install kolla
42
- pip :
43
- name : .
44
- chdir : " {{ zuul.project.src_dir }}"
45
- virtualenv : " {{ virtualenv_path }}"
46
- virtualenv_python : python3
45
+ command : " {{ virtualenv_path }}/bin/python -m pip install {{ zuul.project.src_dir }}"
47
46
48
47
- name : Configure Docker repo for Debian/Ubuntu
49
48
block :
Original file line number Diff line number Diff line change 1
1
---
2
2
- hosts : all
3
+ vars :
4
+ # NOTE(yoctozepto): We need Docker SDK, the best source is Kolla venv.
5
+ ansible_python_interpreter : " {{ virtualenv_path }}/bin/python"
3
6
tasks :
4
- - name : Ensure docker python SDK is installed
5
- become : true
6
- pip :
7
- name : " docker"
8
- state : present
9
-
10
7
- name : List all containers
11
8
docker_host_info :
12
9
images : yes
You can’t perform that action at this time.
0 commit comments