File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
ansible-scylla-node/tasks Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 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
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 }}"
You can’t perform that action at this time.
0 commit comments