Yet another Ansible iteration
Is this the code (without formatting) that you're looking for?
shell> cat play.yml
- hosts: localhost
vars:
my_list:
- name: "asd-ASX030-vc-0"
key_2: ["A", "B"]
- name: "asd-ASX030-vc-1"
key_2: ["C", "D"]
tasks:
- debug:
msg: "{{ item.name }} = {{ item.key_2 }}"
loop: "{{ my_list }}"
shell> ansible-playbook play.yml | grep msg
msg: asd-ASX030-vc-0 = [u'A', u'B']
msg: asd-ASX030-vc-1 = [u'C', u'D']