Skip to content

Commit

Permalink
Fix the prechecks for the ansible version
Browse files Browse the repository at this point in the history
Change-Id: I7005a7ce15fa91df2c1e54569a80d7085e99e24e
Partial-Implements: blueprint ansible2
  • Loading branch information
Jeffrey Zhang committed Jun 8, 2016
1 parent c31688b commit 3b1b6ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -44,7 +44,7 @@ dev/vagrant/storage/
releasenotes/build

# Files generated by Ansible
ansible/site.retry
ansible/*.retry

# Others
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/prechecks/tasks/package_checks.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/prechecks/vars/main.yml
@@ -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'

0 comments on commit 3b1b6ab

Please sign in to comment.