From 3009f6920dadc474f7c4988eca55ebe23df3a8a5 Mon Sep 17 00:00:00 2001 From: "vkub.enko" Date: Fri, 18 Aug 2017 15:42:29 +1000 Subject: [PATCH] added required packages installation as without those was not able to create container using docker_container module --- tasks/setup-Debian.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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