Ansible 'version' is a test not a filter.

The previously used syntax worked on ansible < 2.9, but now it is
invalid and fails.

Change-Id: Ic8fc9327e6814d310d862ab3ce8d323f30faa359
This commit is contained in:
Jonathan Rosser 2020-05-10 18:36:51 +01:00
parent ee07912fdf
commit 303e5c44ae
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('3.18.0-0-generic', '<')
- hostvars[physical_host]['ansible_kernel'] is version('3.18.0-0-generic', '<')
tags:
- always