Skip to content

Commit 00562a2

Browse files
test
1 parent b79335c commit 00562a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ansible-scylla-node/tasks/common.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,12 @@
318318
set_fact:
319319
broadcast_address: "{{ scylla_broadcast_address }}"
320320

321+
# This will be used later to validate the output of nodetool status
322+
- name: Create a list with the broadcast addresses of the nodes in play_hosts
323+
broadcast_address_list: "{{ broadcast_address_list | default([]) + [hostvars[item]['broadcast_address']] }}"
324+
loop: "{{ play_hosts }}"
325+
run_once: true
326+
321327
- name: start_scylla_service dependent tasks
322328
block:
323329
- name: Generate tokens for the new nodes
@@ -347,7 +353,7 @@
347353

348354
- name: wait for the cluster to become healthy
349355
shell: |
350-
nodetool status|grep -E '^UN|^UJ|^DN'| grep -Ew "{{ play_hosts | join('|') }}" | wc -l
356+
nodetool status|grep -E '^UN|^UJ|^DN'| grep -Ew "{{ broadcast_address_list | join('|') }}" | wc -l
351357
register: node_count
352358
until: node_count.stdout|int == play_hosts|length
353359
retries: "{{ scylla_bootstrap_wait_time_sec|int }}"

0 commit comments

Comments
 (0)