From a list of dictionaries, create one dictionary which members contain a list

后端 未结 0 1989
-上瘾入骨i
-上瘾入骨i 2020-12-03 07:06

Having the following list of dictionaries:

  - set_fact:
      inventory:
        - dn: host1
          lid: 0021-00
          unit_id: 50
        - dn: host2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题