added required packages installation as without those was not able to create container using docker_container module

This commit is contained in:
vkub.enko 2017-08-18 15:42:29 +10:00
parent a4bc441310
commit 3009f6920d

View File

@ -38,3 +38,16 @@
repo: "{{ docker_apt_repository }}" repo: "{{ docker_apt_repository }}"
state: present state: present
update_cache: yes 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