diff --git a/tasks/consul.yml b/tasks/consul.yml index cc9013b..8c2b4c1 100644 --- a/tasks/consul.yml +++ b/tasks/consul.yml @@ -10,8 +10,9 @@ port: '{{ geth_port }}' address: '{{ ansible_host }}' meta: - node_addr: '{{ node_info.json.result.id }}' + node_addr: '{{ node_info.json.result.id }}' node_enode: '{{ node_info.json.result.enode }}' + version: '{{ geth_cont_tag | regex_replace("^v", "") }}' checks: - id: '{{ geth_cont_name }}-status' type: tcp @@ -25,6 +26,7 @@ disabled: '{{ not geth_rpc_enabled }}' meta: url: 'http://{{ geth_consul_advertised_address }}:{{ geth_rpc_port }}' + version: '{{ geth_cont_tag | regex_replace("^v", "") }}' checks: - id: '{{ geth_cont_name }}-rpc-status' type: 'script' @@ -40,6 +42,7 @@ disabled: '{{ not geth_authrpc_enabled }}' meta: url: 'http://{{ geth_consul_advertised_address }}:{{ geth_authrpc_port }}' + version: '{{ geth_cont_tag | regex_replace("^v", "") }}' checks: - id: '{{ geth_cont_name }}-authrpc-status' type: 'tcp' @@ -54,6 +57,7 @@ disabled: '{{ not geth_websocket_enabled }}' meta: url: 'ws://{{ geth_consul_advertised_address }}:{{ geth_websocket_port }}' + version: '{{ geth_cont_tag | regex_replace("^v", "") }}' checks: - id: '{{ geth_cont_name }}-ws-status' name: 'Geth WebSocket API'