debian: Add Bookworm support
Since Debian Bookworm does not support installing packages using pip outside of a venv - let's install python3-docker package when not using one. Change-Id: Ide845a4108607765fb3fe772f9bd30db054e2c92 (cherry picked from commit 19a684cb2ece2b830c7e7228269658b5e15e91f3)
This commit is contained in:
parent
8d37dee4bf
commit
a931bf98e5
@ -3,6 +3,7 @@
|
||||
docker_sdk_packages:
|
||||
- "python3-setuptools"
|
||||
- "python3-pip"
|
||||
- "{% if ansible_facts.distribution_release == 'bookworm' and virtualenv is none %}python3-docker{% endif %}"
|
||||
|
||||
# List of Python packages to install via Pip.
|
||||
# NOTE(mnasiadka) docker 3.0.0 is in kolla-ansible requirements
|
||||
|
@ -28,3 +28,4 @@
|
||||
virtualenv_command: "{{ virtualenv is none | ternary(omit, 'python' ~ host_python_version ~ ' -m venv') }}"
|
||||
become: true
|
||||
become_user: "{{ virtualenv is none | ternary(omit, docker_sdk_virtualenv_owner) }}"
|
||||
when: not (ansible_facts.distribution_release == "bookworm" and virtualenv is none)
|
||||
|
Loading…
x
Reference in New Issue
Block a user