2021-04-19 20:21:42 +02:00
|
|
|
---
|
2021-10-12 13:52:13 +02:00
|
|
|
- include_tasks: consul/posix.yml
|
|
|
|
when: ansible_system in ['Linux', 'Darwin']
|
2022-06-03 12:01:44 +02:00
|
|
|
loop: '{{ geth_node_api_consul_names }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: 'service_name'
|
2021-05-19 17:54:46 +08:00
|
|
|
|
2021-10-12 13:52:13 +02:00
|
|
|
- include_tasks: consul/windows.yml
|
|
|
|
when: ansible_system == 'Win32NT'
|
2022-06-03 12:01:44 +02:00
|
|
|
loop: '{{ geth_node_api_consul_names }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: 'service_name'
|
2021-12-02 13:10:06 +01:00
|
|
|
|
2021-04-19 20:21:42 +02:00
|
|
|
- name: Extract Goerli Geth WebSocket URL
|
|
|
|
set_fact:
|
2022-08-11 19:23:41 +02:00
|
|
|
# Our nodes first (will be used by default) then an Infura node.
|
|
|
|
# Currently only Mainnet has not had it's merge, so it can use Infura.
|
|
|
|
beacon_node_web3_urls_all: |
|
|
|
|
{{ geth_api_addresses +
|
|
|
|
(eth1_network_name == "mainnet") | ternary([selected_infura_url], []) }}
|