Skip to content

Commit

Permalink
ansible-scylla-node: Use broadcast_address instead of dns name to gen…
Browse files Browse the repository at this point in the history
…erate the tokens file
  • Loading branch information
igorribeiroduarte authored and vladzcloudius committed Dec 14, 2023
1 parent c9312f8 commit 9f5e659
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 @@ -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
Expand Down

0 comments on commit 9f5e659

Please sign in to comment.