From 501ec853503e148d806ce349ec355d41537d068c Mon Sep 17 00:00:00 2001 From: linux_geek Date: Tue, 18 Oct 2016 21:42:32 +0500 Subject: Pulling dockers using ansible also requires docker-py package. Change-Id: I107fc447335af6f5d44cdb2bd0ea74246ef17b29 Signed-off-by: Taseer Ahmed --- supporting/servers/roles/elk/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'supporting/servers/roles/elk/tasks') diff --git a/supporting/servers/roles/elk/tasks/main.yml b/supporting/servers/roles/elk/tasks/main.yml index 7628f378..cc544be5 100644 --- a/supporting/servers/roles/elk/tasks/main.yml +++ b/supporting/servers/roles/elk/tasks/main.yml @@ -26,6 +26,18 @@ become: true apt: name=docker-engine +- name: install pip + apt: + pkg:{{ item }} state=installed + state: installed + with_items: + - python-dev + - python-pip + +- name: install docker-py + pip: + name: docker-py + - name: pulling elasticsearch and kibana become: true docker_image: name={{ item }} state=present -- cgit 1.2.3-korg