go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/inventory/ansibleinventory/testdata/inventory.json (about)

     1  {
     2    "_meta": {
     3        "hostvars": {
     4            "192.168.1.1": {},
     5            "192.168.1.2": {},
     6            "192.168.2.1": {},
     7            "192.168.2.2": {},
     8            "192.168.3.1": {},
     9            "alpha.example.org": {},
    10            "beta.example.org": {
    11                "ansible_host": "192.168.200.122"
    12            },
    13            "ec2-34-242-192-191.eu-west-1.compute.amazonaws.com": {
    14                "ami_launch_index": 0,
    15                "architecture": "x86_64",
    16                "block_device_mappings": [
    17                    {
    18                        "device_name": "/dev/xvda",
    19                        "ebs": {
    20                            "attach_time": "2019-04-04T12:42:18+00:00",
    21                            "delete_on_termination": true,
    22                            "status": "attached",
    23                            "volume_id": "vol-0ca41b637a8de8b31"
    24                        }
    25                    }
    26                ],
    27                "capacity_reservation_specification": {
    28                    "capacity_reservation_preference": "open"
    29                },
    30                "client_token": "",
    31                "cpu_options": {
    32                    "core_count": 1,
    33                    "threads_per_core": 1
    34                },
    35                "ebs_optimized": false,
    36                "ena_support": true,
    37                "hibernation_options": {
    38                    "configured": false
    39                },
    40                "hypervisor": "xen",
    41                "image_id": "ami-07683a44e80cd32c5",
    42                "instance_id": "i-0e11b0762369fbefa",
    43                "instance_type": "t2.nano",
    44                "key_name": "chrisrock",
    45                "launch_time": "2019-04-04T12:42:18+00:00",
    46                "monitoring": {
    47                    "state": "disabled"
    48                },
    49                "network_interfaces": [
    50                    {
    51                        "association": {
    52                            "ip_owner_id": "amazon",
    53                            "public_dns_name": "ec2-34-242-192-191.eu-west-1.compute.amazonaws.com",
    54                            "public_ip": "34.242.192.191"
    55                        },
    56                        "attachment": {
    57                            "attach_time": "2019-04-04T12:42:18+00:00",
    58                            "attachment_id": "eni-attach-05484c01c08b45093",
    59                            "delete_on_termination": true,
    60                            "device_index": 0,
    61                            "status": "attached"
    62                        },
    63                        "description": "",
    64                        "groups": [
    65                            {
    66                                "group_id": "sg-043dd4a0e18cd7176",
    67                                "group_name": "launch-wizard-4"
    68                            }
    69                        ],
    70                        "ipv6_addresses": [],
    71                        "mac_address": "0a:67:30:81:c3:32",
    72                        "network_interface_id": "eni-03e76ccdaeef00f7f",
    73                        "owner_id": "675173580680",
    74                        "private_dns_name": "ip-172-31-44-130.eu-west-1.compute.internal",
    75                        "private_ip_address": "172.31.44.130",
    76                        "private_ip_addresses": [
    77                            {
    78                                "association": {
    79                                    "ip_owner_id": "amazon",
    80                                    "public_dns_name": "ec2-34-242-192-191.eu-west-1.compute.amazonaws.com",
    81                                    "public_ip": "34.242.192.191"
    82                                },
    83                                "primary": true,
    84                                "private_dns_name": "ip-172-31-44-130.eu-west-1.compute.internal",
    85                                "private_ip_address": "172.31.44.130"
    86                            }
    87                        ],
    88                        "source_dest_check": true,
    89                        "status": "in-use",
    90                        "subnet_id": "subnet-c01ab09a",
    91                        "vpc_id": "vpc-3099a656"
    92                    }
    93                ],
    94                "placement": {
    95                    "availability_zone": "eu-west-1b",
    96                    "group_name": "",
    97                    "region": "eu-west-1",
    98                    "tenancy": "default"
    99                },
   100                "private_dns_name": "ip-172-31-44-130.eu-west-1.compute.internal",
   101                "private_ip_address": "172.31.44.130",
   102                "product_codes": [],
   103                "public_dns_name": "ec2-34-242-192-191.eu-west-1.compute.amazonaws.com",
   104                "public_ip_address": "34.242.192.191",
   105                "root_device_name": "/dev/xvda",
   106                "root_device_type": "ebs",
   107                "security_groups": [
   108                    {
   109                        "group_id": "sg-043dd4a0e18cd7176",
   110                        "group_name": "launch-wizard-4"
   111                    }
   112                ],
   113                "source_dest_check": true,
   114                "state": {
   115                    "code": 16,
   116                    "name": "running"
   117                },
   118                "state_transition_reason": "",
   119                "subnet_id": "subnet-c01ab09a",
   120                "tags": {
   121                    "department": "x",
   122                    "env": "staging"
   123                },
   124                "virtualization_type": "hvm",
   125                "vpc_id": "vpc-3099a656"
   126            }
   127        }
   128    },
   129    "all": {
   130        "children": [
   131            "api",
   132            "aws_ec2",
   133            "payment",
   134            "ungrouped",
   135            "web",
   136            "webservers"
   137        ]
   138    },
   139    "api": {
   140        "hosts": [
   141            "192.168.2.1",
   142            "192.168.2.2"
   143        ]
   144    },
   145    "aws_ec2": {
   146        "hosts": [
   147            "ec2-34-242-192-191.eu-west-1.compute.amazonaws.com"
   148        ]
   149    },
   150    "payment": {
   151        "hosts": [
   152            "192.168.3.1"
   153        ]
   154    },
   155    "ungrouped": {},
   156    "web": {
   157        "hosts": [
   158            "192.168.1.1",
   159            "192.168.1.2"
   160        ]
   161    },
   162    "webservers": {
   163        "hosts": [
   164            "alpha.example.org",
   165            "beta.example.org"
   166        ]
   167    }
   168  }