Skip to content

Commit

Permalink
ansible-scylla-node: Pass broadcast_address to the tokens API instead…
Browse files Browse the repository at this point in the history
… of dns name

Currently we're using the dns name and this makes the API return error, since
it expects the broadcast address.
  • Loading branch information
igorribeiroduarte authored and vladzcloudius committed Dec 14, 2023
1 parent a31e1f8 commit c9312f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible-scylla-node/tasks/generate_tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9312f8

Please sign in to comment.