Skip to content
Snippets Groups Projects
Commit 812db6f4 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "prechecks: check ansible version on deployment host"

parents 980bbcb4 9ec425ae
No related branches found
No related tags found
No related merge requests found
......@@ -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, '>=')
docker_version_min: '1.9.0'
docker_py_version_min: '1.6.0'
ansible_version_max: '2.0.0'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment