Jakub Sokołowski 513fb2bb88
get-geth-api-urls: drop Infura URLs entirely
Mainnet merge has happened, so no need for the exception.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-15 14:30:30 +02:00

21 lines
642 B
YAML

---
- name: Find available data centers
uri:
url: '{{ consul_catalog_url }}/datacenters'
register: data_centers
- name: Find available Geth API Auth RPC services
uri:
url: '{{ consul_catalog_url }}/service/{{ service_name }}-authrpc?dc={{ item }}&tag={{ geth_node_api_fleet_name }}'
with_items: '{{ data_centers.json }}'
register: geth_rpc_services
# On Windows json attribute is missing when it's [].
- name: Extract Geth websocket IP and port
set_fact:
beacon_node_web3_urls_all: |
{{ geth_rpc_services.results
| sum(attribute="json", start=[])
| map(attribute="ServiceMeta.url")
| list }}