write dict/list yaml/json in with_item section

Hi,

I wrote this simple role that has this main.yml:

Fixed.
As part of role/mount/tasks/main.yml:

  • filesystem: fstype=xfs dev=/dev/disk/by-id/google-{{ item.value.block }} opts=‘-f’ force=yes
    with_dict: mounts
    ignore_errors: yes

Now, a part of role/mount/vars/main.yml: