From 65e546e1a27eb6e45d62ed9bd921537ee35f531a Mon Sep 17 00:00:00 2001 From: Igor Duarte Date: Mon, 1 Apr 2024 13:11:43 +0200 Subject: [PATCH] test --- ansible-scylla-node/tasks/common.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/ansible-scylla-node/tasks/common.yml b/ansible-scylla-node/tasks/common.yml index eac5f969..486ca030 100644 --- a/ansible-scylla-node/tasks/common.yml +++ b/ansible-scylla-node/tasks/common.yml @@ -345,6 +345,35 @@ host: "{{ scylla_api_address }}" timeout: 300 + + - shell: | + nodetool status + register: igor_test1 + + - shell: | + nodetool status|grep -E '^UN|^UJ|^DN' + register: igor_test2 + + - shell: | + nodetool status|grep -E '^UN|^UJ|^DN'| grep -Ew "{{ play_hosts | join('|') }}" | wc -l + register: igor_test3 + + - name: Show play_hosts + debug: + msg: "{{ play_hosts }}" + + - name: Show igor_test1 + debug: + msg: "{{ igor_test1.stdout }}" + + - name: Show igor_test2 + debug: + msg: "{{ igor_test2.stdout }}" + + - name: Show igor_test3 + debug: + msg: "{{ igor_test3.stdout }}" + - name: wait for the cluster to become healthy shell: | nodetool status|grep -E '^UN|^UJ|^DN'| grep -Ew "{{ play_hosts | join('|') }}" | wc -l