diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index d0be48d..2aa68cd 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -38,3 +38,16 @@ repo: "{{ docker_apt_repository }}" state: present update_cache: yes + +- name: Install packages required for docker_container see https://docs.ansible.com/ansible/docker_container_module.html#requirements-on-host-that-executes-module + apt: name={{item}} state=installed + become: yes + with_items: + - python-dev + - python-pip + + +- name: pip install docker-py via pip module + pip: + name: docker-py + version: 1.10.6