From 4405f7d6b5149252c69ed02aeeb67909da41a70b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 12 Jul 2018 16:44:21 +0200 Subject: [PATCH] Fix usage of "|" for tests With the more recent versions of ansible, we should now use "is" instead of the "|" sign for the tests. This should fix it. Change-Id: Id39023e9801f2bf114fbb02e89e13e1452e6b928 --- tests/test-create-btrfs-dev.yml | 2 +- tests/test-create-nfs-dev.yml | 2 +- tests/test-create-swap-dev.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-create-btrfs-dev.yml b/tests/test-create-btrfs-dev.yml index aa02dfc..a4fd602 100644 --- a/tests/test-create-btrfs-dev.yml +++ b/tests/test-create-btrfs-dev.yml @@ -40,7 +40,7 @@ fstype: btrfs dev: /var/lib/sparse-file.img when: - - sparse_file | changed + - sparse_file is changed vars: btrfs_package: apt: "btrfs-tools" diff --git a/tests/test-create-nfs-dev.yml b/tests/test-create-nfs-dev.yml index 629196a..e5a1acc 100644 --- a/tests/test-create-nfs-dev.yml +++ b/tests/test-create-nfs-dev.yml @@ -70,7 +70,7 @@ enabled: "yes" state: "restarted" when: - - nfs_exportfs | changed + - nfs_exportfs is changed - name: Export NFS command: exportfs -rav diff --git a/tests/test-create-swap-dev.yml b/tests/test-create-swap-dev.yml index 46704b3..ff37553 100644 --- a/tests/test-create-swap-dev.yml +++ b/tests/test-create-swap-dev.yml @@ -29,4 +29,4 @@ command: mkswap /var/lib/test-swap.img failed_when: false when: - - create_swap | changed + - create_swap is changed