Hi

I'm struggling with something seemingly simple.
I have this list:

instances:
  - id: i-0fe48c061f6a323a0
    type: web
  - id: i-0403e39813defda31
    type: web
  - id: i-0442f13b528e5e1c6
    type: proxy
  - id: i-0ebea75d008becaa6
    type: proxy
  - id: i-067c5d985c194e036
    type: db
  - id: i-0679e87f06d0cf9a2
    type: db


Which I'd like to turn into this structure:


instances:
  web:
    - id: i-0fe48c061f6a323a0
    - id: i-0403e39813defda31
  proxy:
    - id: i-0442f13b528e5e1c6
    - id: i-0ebea75d008becaa6
  db:
    - id: i-067c5d985c194e036
    - id: i-0679e87f06d0cf9a2


But I can't figure out how to do this...





-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMY8Txx-OVkie-yxvxPNLigO8R5-W8etNM37ySE00U-Hw%40mail.gmail.com.

Reply via email to