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
This commit is contained in:
Jean-Philippe Evrard 2018-07-12 16:44:21 +02:00
parent 4fcb85f005
commit 4405f7d6b5
3 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -70,7 +70,7 @@
enabled: "yes"
state: "restarted"
when:
- nfs_exportfs | changed
- nfs_exportfs is changed
- name: Export NFS
command: exportfs -rav

View File

@ -29,4 +29,4 @@
command: mkswap /var/lib/test-swap.img
failed_when: false
when:
- create_swap | changed
- create_swap is changed