24 lines
752 B
YAML
24 lines
752 B
YAML
---
|
|
- name: Find available data centers
|
|
win_uri:
|
|
url: '{{ consul_catalog_url }}/datacenters'
|
|
content_type: 'application/json'
|
|
return_content: true
|
|
register: data_centers
|
|
|
|
- name: Find available Geth API RPC services
|
|
win_uri:
|
|
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 }}'
|
|
content_type: 'application/json'
|
|
return_content: true
|
|
with_items: '{{ data_centers.json }}'
|
|
register: geth_ws_services
|