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:
parent
4619fca052
commit
866b5c233a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user