diff --git a/contrib/aws_inventory/kubespray-aws-inventory.py b/contrib/aws_inventory/kubespray-aws-inventory.py index 3ad241c7e..44a4a09a9 100755 --- a/contrib/aws_inventory/kubespray-aws-inventory.py +++ b/contrib/aws_inventory/kubespray-aws-inventory.py @@ -69,7 +69,7 @@ class SearchEC2Tags(object): hosts[group].append(dns_name) hosts['_meta']['hostvars'][dns_name] = ansible_host - + hosts['k8s_cluster'] = {'children':['kube_control_plane', 'kube_node']} print(json.dumps(hosts, sort_keys=True, indent=2))