diff --git a/ansible/roles/prechecks/tasks/package_checks.yml b/ansible/roles/prechecks/tasks/package_checks.yml index ef8147fd99..1bdd44e1a3 100644 --- a/ansible/roles/prechecks/tasks/package_checks.yml +++ b/ansible/roles/prechecks/tasks/package_checks.yml @@ -11,3 +11,12 @@ register: result changed_when: false 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' diff --git a/ansible/roles/prechecks/vars/main.yml b/ansible/roles/prechecks/vars/main.yml index 3de7faad14..c8c94b048d 100644 --- a/ansible/roles/prechecks/vars/main.yml +++ b/ansible/roles/prechecks/vars/main.yml @@ -1,3 +1,4 @@ docker_version_min: '1.10.0' docker_py_version_min: '1.6.0' ansible_version_max: '2.0.0' +ubuntu_kernel_version_min: '4.2'