Use version test instead of version_compare

This test was changed to 'version' in ansible 2.5 [1].

[1] https://docs.ansible.com/ansible/2.8/user_guide/playbooks_tests.html#version-compariso

Change-Id: Ia3b6674398665bb84ea6d1da95956aeab1bf7735
This commit is contained in:
Dmitriy Rabotyagov 2019-09-10 13:47:06 +03:00
parent 4619fca052
commit 866b5c233a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
msg: "Using overlayfs is not recommended when using Kernel version < 3.18"
when:
- lxc_container_backing_store == "overlayfs"
- hostvars[physical_host]['ansible_kernel'] | version_compare('3.18.0-0-generic', '<')
- hostvars[physical_host]['ansible_kernel'] | version('3.18.0-0-generic', '<')
tags:
- always