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

12 lines
335 B
YAML
Raw Normal View History

---
- name: Find available data centers
uri:
url: '{{ consul_catalog_url }}/datacenters'
register: data_centers
- name: Find available geth websocket services
uri:
url: '{{ consul_catalog_url }}/service/{{ web3_geth_node_consul_name }}?dc={{ item }}'
with_items: '{{ data_centers.json }}'
register: geth_ws_services