kolla-ansible/ansible/roles/prechecks/tasks/package_checks.yml
Jeffrey Zhang d7b665929d Revert "Added precheck to check kernel version 4.2 on Ubuntu 14.04."
Upgrade the kernel version is not acceptable for the server in most
of case. I do not see the issue when using ubuntu 14.04 default
kernel with docker aufs storage driver.

Even if there is some wrong in the aufs driver, we could recommend
the user to use other drivers, like lvm, brtfs or even overlay driver.

This reverts commit 833c1269c7.

Change-Id: I6ee71ecd1ca64777b874bfcc342162622643b89c
2016-06-15 16:02:43 +08:00

14 lines
497 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_min, '<')