infra-nimbus/ansible/roles/get-geth-web3-urls/tasks/consul/windows.yml

16 lines
467 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 websocket services
win_uri:
url: '{{ consul_catalog_url }}/service/{{ web3_geth_node_consul_name }}?dc={{ item }}'
content_type: 'application/json'
return_content: true
with_items: '{{ data_centers.json }}'
register: geth_ws_services