Ansible ... why???

1 minute read Published: 2021-05-05
with_items: "{{ old_mounts | sort | reverse }}"

results in...

item=<list_reverseiterator object at 0x7fdc252dad60>

The "fix" is to use the list filter:

with_items: "{{ old_mounts | sort | reverse | list }}"

#ansible