diff --git a/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml b/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml index bb03907..c43993a 100644 --- a/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml +++ b/collections/ansible_collections/infra/lvm_snapshots/roles/shrink_lv/tasks/check_device.yaml @@ -4,7 +4,7 @@ - name: Assert that the mount point exists ansible.builtin.assert: - that: (shrink_lv_mount_info | length) == 1 + that: shrink_lv_mount_info['device'] is defined fail_msg: "Mount point {{ item['device'] }} does not exist" - name: Assert that the filesystem is supported