From 43a7c6f66a0c4162a4ab2c38029bd68631815138 Mon Sep 17 00:00:00 2001 From: Igor Duarte Date: Thu, 14 Dec 2023 13:59:09 -0300 Subject: [PATCH] ansible-scylla-node: Pass broadcast_address to the tokens API instead of dns name Currently we're using the dns name and this makes the API return error, since it expects the broadcast address. --- ansible-scylla-node/tasks/generate_tokens.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible-scylla-node/tasks/generate_tokens.yml b/ansible-scylla-node/tasks/generate_tokens.yml index 50a4179b..10573398 100644 --- a/ansible-scylla-node/tasks/generate_tokens.yml +++ b/ansible-scylla-node/tasks/generate_tokens.yml @@ -33,7 +33,7 @@ block: - name: Get tokens uri: - url: "http://{{ scylla_api_address }}:{{ scylla_api_port }}/storage_service/tokens/{{ item }}" + url: "http://{{ scylla_api_address }}:{{ scylla_api_port }}/storage_service/tokens/{{ hostvars[item]['broadcast_address'] }}" method: GET register: _existing_tokens until: _existing_tokens.status == 200