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

Merge "Added precheck to check kernel version 4.2 on Ubuntu 14.04."

parents 981d8206 833c1269
No related branches found
No related tags found
No related merge requests found
...@@ -11,3 +11,12 @@ ...@@ -11,3 +11,12 @@
register: result register: result
changed_when: false 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_max, '>=')
# If this fails run "apt-get install linux-image-generic-lts-wily"
- name: Checking LTS wily kernel version 4.2 on Ubuntu 14.04
command: uname -r
register: result
changed_when: false
failed_when: result.stdout | regex_replace('(\\d+\\.\\d+).*', '\\1') | version_compare(ubuntu_kernel_version_min, '<')
when:
- ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
docker_version_min: '1.10.0' docker_version_min: '1.10.0'
docker_py_version_min: '1.6.0' docker_py_version_min: '1.6.0'
ansible_version_max: '2.0.0' ansible_version_max: '2.0.0'
ubuntu_kernel_version_min: '4.2'
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