Skip to content

Commit

Permalink
syntax error with ansible 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rhmk committed May 9, 2019
1 parent e8c37f4 commit b20e0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/volume-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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))}) }}"
Expand Down

0 comments on commit b20e0ec

Please sign in to comment.