833c1269c7
Kolla recommends LTS wily kernel version 4.2 on Ubuntu 14.04. http://docs.openstack.org/developer/kolla/quickstart.html#installing-dependencies The precheck check the running kernel version, because checking the linux-image-generic-lts-wily cannot be a valid check. The package (linux-image-generic-lts-wily) can be installed, but the running kernel can be other version. Closes-Bug: #1563500 Co-Authored-By: Vikram Hosakote <vhosakot@cisco.com> Change-Id: I4e08bca95493b2dbd0ad5f8d1ea4e07b18c4959d
23 lines
900 B
YAML
23 lines
900 B
YAML
---
|
|
- name: Checking docker-py version
|
|
command: python -c "import docker; print docker.__version__"
|
|
register: result
|
|
changed_when: false
|
|
failed_when: result | failed or
|
|
result.stdout | version_compare(docker_py_version_min, '<')
|
|
|
|
- name: Checking Ansible version
|
|
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, '>=')
|
|
|
|
# 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'
|