Fix the prechecks for the ansible version

Change-Id: I7005a7ce15fa91df2c1e54569a80d7085e99e24e
Partial-Implements: blueprint ansible2
This commit is contained in:
Jeffrey Zhang 2016-06-09 07:04:13 +08:00
parent c31688be36
commit 3b1b6abf5b
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -44,7 +44,7 @@ dev/vagrant/storage/
releasenotes/build
# Files generated by Ansible
ansible/site.retry
ansible/*.retry
# Others
.DS_Store

View File

@ -10,7 +10,7 @@
local_action: command ansible --version
register: result
changed_when: false
failed_when: result.stdout | regex_replace('ansible (\\d+\\.\\d+\\.\\d+)', '\\1') | version_compare(ansible_version_max, '>=')
failed_when: result.stdout | regex_replace('ansible (\\d+\\.\\d+\\.\\d+)', '\\1') | version_compare(ansible_version_min, '<')
# If this fails run "apt-get install linux-image-generic-lts-wily"
- name: Checking LTS wily kernel version 4.2 on Ubuntu 14.04

View File

@ -1,4 +1,4 @@
docker_version_min: '1.10.0'
docker_py_version_min: '1.6.0'
ansible_version_max: '2.0.0'
ansible_version_min: '2.0.0'
ubuntu_kernel_version_min: '4.2'