2021-04-19 18:21:42 +00:00
|
|
|
---
|
2021-10-12 11:52:13 +00:00
|
|
|
- include_tasks: consul/posix.yml
|
|
|
|
when: ansible_system in ['Linux', 'Darwin']
|
2021-05-19 09:54:46 +00:00
|
|
|
|
2021-10-12 11:52:13 +00:00
|
|
|
- include_tasks: consul/windows.yml
|
|
|
|
when: ansible_system == 'Win32NT'
|
2021-05-19 09:54:46 +00:00
|
|
|
|
2021-10-12 11:52:13 +00:00
|
|
|
# On Windows json attribute is missing when it's [].
|
2021-05-19 09:54:46 +00:00
|
|
|
- name: Extract Geth websocket IP and port
|
|
|
|
set_fact:
|
2021-12-02 12:10:06 +00:00
|
|
|
geth_api_addresses: |
|
2021-05-19 09:54:46 +00:00
|
|
|
{{ geth_ws_services.results
|
2021-10-12 11:52:13 +00:00
|
|
|
| selectattr("json", "defined")
|
2021-05-19 09:54:46 +00:00
|
|
|
| sum(attribute="json", start=[])
|
2021-12-02 12:10:06 +00:00
|
|
|
| map(attribute='ServiceMeta.url')
|
2021-05-19 09:54:46 +00:00
|
|
|
| list }}
|
2021-12-02 12:10:06 +00:00
|
|
|
|
2021-04-19 18:21:42 +00:00
|
|
|
- name: Extract Goerli Geth WebSocket URL
|
|
|
|
set_fact:
|
2021-05-19 09:54:46 +00:00
|
|
|
# our nodes first (will be used by default) then an infura node
|
2021-12-02 12:10:06 +00:00
|
|
|
beacon_node_web3_urls: "{{ geth_api_addresses + [ selected_infura_url ] }}"
|