From 9f5e659422094aa806e68d5773bebc45a6df7e4d Mon Sep 17 00:00:00 2001 From: Igor Duarte Date: Thu, 14 Dec 2023 14:32:55 -0300 Subject: [PATCH] ansible-scylla-node: Use broadcast_address instead of dns name to generate the tokens file --- 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 10573398..74e1fdc8 100644 --- a/ansible-scylla-node/tasks/generate_tokens.yml +++ b/ansible-scylla-node/tasks/generate_tokens.yml @@ -45,7 +45,7 @@ - name: Copy tokens to tmp file lineinfile: path: "{{ tokens_file.path }}" - line: "{{ item.item }}={{ item.json | map('int') | join(',') }}" + line: "{{ hostvars[item.item]['broadcast_address'] }}={{ item.json | map('int') | join(',') }}" create: yes when: item.json|length > 0 delegate_to: localhost