From 0b9ca0ab59209114784c6552899c3bb22385bc96 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Mon, 9 Sep 2019 15:49:38 +0100 Subject: [PATCH] Use version test instead of version_compare This filter was changed to 'version' in ansible 2.5 [1]. [1] https://docs.ansible.com/ansible/2.8/user_guide/playbooks_tests.html#version-comparison Change-Id: Id6098b6ef4912ff3adfa2c74cd3a8f2211e28054 --- tests/roles/bootstrap-host/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/roles/bootstrap-host/defaults/main.yml b/tests/roles/bootstrap-host/defaults/main.yml index 43ce35346d..7b6ea57660 100644 --- a/tests/roles/bootstrap-host/defaults/main.yml +++ b/tests/roles/bootstrap-host/defaults/main.yml @@ -175,9 +175,9 @@ bootstrap_host_format_options: # # Set the data disk mount options. bootstrap_host_data_mount_options: - machinectl: "noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version_compare('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}" + machinectl: "noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}" zfs: "defaults" - btrfs: "noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version_compare('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}" + btrfs: "noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}" xfs: "noatime,nodiratime,logbufs=8,logbsize=256k" ext4: "noatime,nobh,barrier=0,data=writeback" dir: "defaults"