diff --git a/tasks/volume-default.yml b/tasks/volume-default.yml index 0e0350cf..2a426926 100644 --- a/tasks/volume-default.yml +++ b/tasks/volume-default.yml @@ -73,7 +73,7 @@ when: volume._preexist - set_fact: - volume: "{{ volume|combine({'_orig_mount_point': ansible_facts.mounts|selectattr('device', 'eq', volume._device)|map(attribute='mount')|list|first|default('')}, recursive=True) }}" + volume: "{{ volume|combine({'_orig_mount_point': ansible_facts.mounts|selectattr('device', 'equalto', volume._device)|map(attribute='mount')|list|first|default('')}, recursive=True) }}" - set_fact: volume: "{{ volume|combine({'_wipe': volume._preexist and (not volume.fs_type or (volume._orig_fs_type and volume.fs_type != volume._orig_fs_type))}) }}"