From 2efc0e6f3c57505d644aec69d01e975af19f7a46 Mon Sep 17 00:00:00 2001 From: saibotk Date: Thu, 22 Feb 2024 03:21:39 +0100 Subject: [PATCH] fix(docker): Install python-requests library for the docker module This is the only dependency that the docker module needs. So we are installing this via the system package manager. Should be fine for now, as there does not seem to be incompatibilities or a specific version being requested. --- roles/docker/defaults/main.yml | 2 ++ roles/docker/tasks/main.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/roles/docker/defaults/main.yml b/roles/docker/defaults/main.yml index daf662a..183cd95 100644 --- a/roles/docker/defaults/main.yml +++ b/roles/docker/defaults/main.yml @@ -55,3 +55,5 @@ docker_apt_repository: > deb [arch={{ docker_apt_architecture_map[ansible_architecture] }}] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable + +docker_requests_python_package: "python-requests" diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 2c96070..2890f24 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -43,3 +43,9 @@ - name: Ensure handlers are notified now to avoid firewall conflicts. ansible.builtin.meta: flush_handlers + +- name: Install required python requests library + ansible.builtin.package: + name: "{{ docker_requests_python_package }}" + state: present + become: true