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