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: If27fde3a15e2b611cebdfd26af5b421475cb7488
This commit is contained in:
parent
4a22f2c0fb
commit
11594a85ae
|
@ -85,7 +85,7 @@
|
||||||
systemd_mounts:
|
systemd_mounts:
|
||||||
- what: "/var/lib/machines.raw"
|
- what: "/var/lib/machines.raw"
|
||||||
where: "/var/lib/machines"
|
where: "/var/lib/machines"
|
||||||
options: "loop,defaults,noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version_compare('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}"
|
options: "loop,defaults,noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}"
|
||||||
type: "btrfs"
|
type: "btrfs"
|
||||||
state: 'started'
|
state: 'started'
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in New Issue