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:
parent
4fcb85f005
commit
4405f7d6b5
@ -40,7 +40,7 @@
|
|||||||
fstype: btrfs
|
fstype: btrfs
|
||||||
dev: /var/lib/sparse-file.img
|
dev: /var/lib/sparse-file.img
|
||||||
when:
|
when:
|
||||||
- sparse_file | changed
|
- sparse_file is changed
|
||||||
vars:
|
vars:
|
||||||
btrfs_package:
|
btrfs_package:
|
||||||
apt: "btrfs-tools"
|
apt: "btrfs-tools"
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
enabled: "yes"
|
enabled: "yes"
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
when:
|
when:
|
||||||
- nfs_exportfs | changed
|
- nfs_exportfs is changed
|
||||||
|
|
||||||
- name: Export NFS
|
- name: Export NFS
|
||||||
command: exportfs -rav
|
command: exportfs -rav
|
||||||
|
@ -29,4 +29,4 @@
|
|||||||
command: mkswap /var/lib/test-swap.img
|
command: mkswap /var/lib/test-swap.img
|
||||||
failed_when: false
|
failed_when: false
|
||||||
when:
|
when:
|
||||||
- create_swap | changed
|
- create_swap is changed
|
||||||
|
Loading…
Reference in New Issue
Block a user