Merge "prechecks: check ansible version on deployment host"

This commit is contained in:
Jenkins 2016-01-21 10:18:43 +00:00 committed by Gerrit Code Review
commit 812db6f45b
2 changed files with 6 additions and 0 deletions

View File

@ -4,3 +4,8 @@
register: result
failed_when: result | failed or
result.stdout | version_compare(docker_py_version_min, '<')
- name: Checking Ansible version
local_action: command ansible --version
register: result
failed_when: result.stdout | regex_replace('ansible (\\d+\\.\\d+\\.\\d+)', '\\1') | version_compare(ansible_version_max, '>=')

View File

@ -1,2 +1,3 @@
docker_version_min: '1.9.0'
docker_py_version_min: '1.6.0'
ansible_version_max: '2.0.0'