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.
This commit is contained in:
saibotk 2024-02-22 03:21:39 +01:00
parent ddd0effa0d
commit 2efc0e6f3c
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 8 additions and 0 deletions

View file

@ -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"

View file

@ -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