Fix for Ansible 2.1: install docker-py in version matched to ansible docker module

Signed-off-by: KGoreczny <krzysztof.goreczny@intel.com>
pull/874/head
KGoreczny 2016-07-11 11:35:32 +02:00
parent 6c3db809ae
commit 13e0b60cbe
3 changed files with 28 additions and 0 deletions

View File

@ -115,3 +115,13 @@
version: 1.1.0 version: 1.1.0
tags: tags:
with_pkg with_pkg
when: ansible_version['full'] | version_compare('2.1.0.0', '<')
- name: install docker-py
pip:
name: docker-py
state: latest
tags:
with_pkg
when: ansible_version['full'] | version_compare('2.1.0.0', '>=')

View File

@ -117,3 +117,12 @@
version: 1.1.0 version: 1.1.0
tags: tags:
with_pkg with_pkg
when: ansible_version['full'] | version_compare('2.1.0.0', '<')
- name: install docker-py
pip:
name: docker-py
state: latest
tags:
with_pkg
when: ansible_version['full'] | version_compare('2.1.0.0', '>=')

View File

@ -116,3 +116,12 @@
version: 1.1.0 version: 1.1.0
tags: tags:
with_pkg with_pkg
when: ansible_version['full'] | version_compare('2.1.0.0', '<')
- name: install docker-py
pip:
name: docker-py
state: latest
tags:
with_pkg
when: ansible_version['full'] | version_compare('2.1.0.0', '>=')