2021-10-12 11:52:13 +00:00
|
|
|
---
|
|
|
|
- name: Find available data centers
|
|
|
|
win_uri:
|
|
|
|
url: '{{ consul_catalog_url }}/datacenters'
|
|
|
|
content_type: 'application/json'
|
|
|
|
return_content: true
|
|
|
|
register: data_centers
|
|
|
|
|
2021-12-03 18:40:52 +00:00
|
|
|
- name: Find available Geth API RPC services
|
2021-10-12 11:52:13 +00:00
|
|
|
win_uri:
|
2021-12-03 18:40:52 +00:00
|
|
|
url: '{{ consul_catalog_url }}/service/{{ geth_node_api_consul_name }}-rpc?dc={{ item }}'
|
|
|
|
content_type: 'application/json'
|
|
|
|
return_content: true
|
|
|
|
with_items: '{{ data_centers.json }}'
|
|
|
|
register: geth_rpc_services
|
|
|
|
|
|
|
|
- name: Find available Geth WebSocket services
|
|
|
|
win_uri:
|
|
|
|
url: '{{ consul_catalog_url }}/service/{{ geth_node_api_consul_name }}-ws?dc={{ item }}'
|
2021-10-12 11:52:13 +00:00
|
|
|
content_type: 'application/json'
|
|
|
|
return_content: true
|
|
|
|
with_items: '{{ data_centers.json }}'
|
|
|
|
register: geth_ws_services
|