kolla-ansible/ansible/roles/prechecks/tasks/package_checks.yml
Eduardo Gonzalez 15a5d2cce9 Revert "Add jinja2-py version check in pre_checks"
This reverts commit 64999de5b9.

Change-Id: I7d706708d476101bf9cfb43cc4cde9e41e716986
2017-05-30 15:41:16 +00:00

13 lines
522 B
YAML

---
- name: Checking docker-py 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, '<')