3daeea37ea
The pypi package 'docker-py' [1] has been renamed to 'docker' [2]. It is better to move to the new 'docker' package because the old package will be deprecated and all the new features will go into the new package only. Package 'docker' has been added to requirements [3]. The old package 'docker-py' is still allowed to be in the global requirements during the transition period but it should be removed after all or most of the projects finsih the migration. [1] https://pypi.python.org/pypi/docker-py [2] https://pypi.python.org/pypi/docker [3] https://review.openstack.org/#/c/423715/ Change-Id: Ibcd5a57a1fbf55dcc5a690e41f20917f95b63da0
13 lines
523 B
YAML
13 lines
523 B
YAML
---
|
|
- name: Checking docker SDK version
|
|
command: "{{ ansible_python.executable }} -c \"import docker; print docker.__version__\""
|
|
register: result
|
|
changed_when: false
|
|
failed_when: result | failed or
|
|
result.stdout | version_compare(docker_py_version_min, '<')
|
|
|
|
- name: Checking Ansible version
|
|
local_action: fail msg="Current Ansible version {{ ansible_version.full }} is less than {{ ansible_version_min }}"
|
|
run_once: true
|
|
when: ansible_version.full | version_compare(ansible_version_min, '<')
|