diff --git a/tasks/save_enode.yml b/tasks/save_enode.yml index 4160418..bd21923 100644 --- a/tasks/save_enode.yml +++ b/tasks/save_enode.yml @@ -9,7 +9,7 @@ - name: Geth | Get enode address uri: - url: http://localhost:{{ geth_rpc_port }}/ + url: http://{{ geth_rpc_addr }}:{{ geth_rpc_port }}/ method: POST body: '{"id": 1, "method": "admin_nodeInfo"}' body_format: json diff --git a/templates/rpc.sh.j2 b/templates/rpc.sh.j2 index de3c500..429e8f3 100644 --- a/templates/rpc.sh.j2 +++ b/templates/rpc.sh.j2 @@ -2,7 +2,7 @@ # vim: set ft=sh: set -euo pipefail -URL="http://localhost:{{ geth_rpc_port }}/" +URL="http://{{ geth_rpc_addr }}:{{ geth_rpc_port }}/" METHOD="$1" shift