001: [root@localhost 3]# python3 inventory.py
002: {
003:     "Linux1": {
004:         "hosts": [
005:             "host-F"
006:         ],
007:         "vars": {
008:             "ansible_connect": "ssh",
009:             "ansible_port": 22
010:         }
011:     },
012:     "_meta": {
013:         "hostvars": {
014:             "host-A": {
015:                 "add_user": [
016:                     {
017:                         "pass": "password1",
018:                         "user": "user1"
019:                     },
020:                     {
021:                         "pass": "password1",
022:                         "user": "user11"
023:                     }
024:                 ],
025:                 "ansible_host": "192.168.10.91",
026:                 "hdd": [
027:                     {
028:                         "datastore": "datastore1",
029:                         "size": 30
030:                     },
031:                     {
032:                         "datastore": "datastore1",
033:                         "size": 30
034:                     }
035:                 ],
036:                 "mem": 2,
037:                 "vcpu": 4
038:             },
039:             "host-B": {
040:                 "add_user": [
041:                     {
042:                         "pass": "password2",
043:                         "user": "user2"
044:                     }
045:                 ],
046:                 "ansible_host": "192.168.10.92",
047:                 "hdd": [
048:                     {
049:                         "datastore": "datastore2",
050:                         "size": 30
051:                     },
052:                     {
053:                         "datastore": "datastore2",
054:                         "size": 30
055:                     }
056:                 ],
057:                 "mem": 1,
058:                 "vcpu": 2
059:             },
060:             "host-D": {
061:                 "add_user": [
062:                     {
063:                         "pass": "password4",
064:                         "user": "user1"
065:                     }
066:                 ],
067:                 "ansible_host": "192.168.10.94",
068:                 "hdd": [
069:                     {
070:                         "datastore": "datastore2",
071:                         "size": 35
072:                     },
073:                     {
074:                         "datastore": "datastore2",
075:                         "size": 35
076:                     }
077:                 ],
078:                 "mem": 1,
079:                 "vcpu": 4
080:             },
081:             "host-F": {
082:                 "ansible_host": "192.168.10.95",
083:                 "hdd": [
084:                     {
085:                         "datastore": "datastore2",
086:                         "size": 20
087:                     },
088:                     {
089:                         "datastore": "datastore2",
090:                         "size": 20
091:                     }
092:                 ],
093:                 "mem": 2,
094:                 "vcpu": 2
095:             }
096:         }
097:     },
098:     "all": [],
099:     "windowsG1": {
100:         "hosts": [
101:             "host-A",
102:             "host-D"
103:         ],
104:         "vars": {
105:             "ansible_connect": "winrm",
106:             "ansible_port": 5986,
107:             "win_domain": "hogehoge.com"
108:         }
109:     },
110:     "windowsG2": {
111:         "hosts": [
112:             "host-B"
113:         ],
114:         "vars": {
115:             "ansible_connect": "winrm",
116:             "ansible_port": 5986,
117:             "win_domain": "hogehoge.local"
118:         }
119:     }
120: }
121: [root@localhost 3]#