def get_kube_api_ip(self, hosts):
    for host in hosts:
        for ip in self.get_inventory_host_ips_data(host):
            if self.is_kubeapi_service_ready(ip):
                return ip
def get_kube_api_ip(self, hosts):
    for host in hosts:
        for ip in self.get_inventory_host_ips_data(host):
            if self.is_kubeapi_service_ready(ip):
                return ip