Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

Commit ec6d839

Browse files
committed
ci: Install python3 packages from the distro
There's no need to use PIP, at all, as we can rely on the packages with the correct versions coming from the distro. This is Ubuntu specific, but it doesn't add a new technical debt, it just keeps the same technical debt we already had. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
1 parent a24718c commit ec6d839

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

tests/e2e/ansible/start_docker_registry.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,16 @@
1212
local_registry_port: 5000
1313
local_registry_name: local-registry
1414
tasks:
15-
- name: Install pip3
15+
- name: Install python3-docker and python3-requests
1616
package:
17-
# TODO: this is ubuntu specific...
18-
name: python3-pip
19-
state: present
20-
retries: 3
21-
delay: 10
22-
# The docker and requests pip packages are required by the docker_container ansible module itself.
23-
# The requests package is pinned to a version less than 2.32 to avoid a bug
24-
# at https://github.com/docker/docker-py/issues/3256
25-
- name: Install docker and requests pip packages
26-
pip:
2717
name:
28-
- docker
29-
- requests<2.32
18+
# This is Ubuntu specific
19+
- python3-docker
20+
- python3-requests
3021
state: present
3122
retries: 3
3223
delay: 10
24+
when: ansible_distribution == "Ubuntu"
3325
- name: Start a docker registry
3426
docker_container:
3527
name: "{{ local_registry_name }}"

0 commit comments

Comments
 (0)