From 032d5e9eb3515ca8006a6f3db8279a67df34f5e3 Mon Sep 17 00:00:00 2001 From: Jack Meixensperger Date: Wed, 18 Dec 2024 16:29:45 -0800 Subject: [PATCH 1/2] add until on splunk monitor retry task --- roles/splunk_monitor/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/splunk_monitor/tasks/main.yml b/roles/splunk_monitor/tasks/main.yml index 9aeaf8e0..661b5b39 100644 --- a/roles/splunk_monitor/tasks/main.yml +++ b/roles/splunk_monitor/tasks/main.yml @@ -41,6 +41,7 @@ when: splunk_indexer_cluster or splunk.multisite_master is defined retries: "{{ retry_num }}" delay: "{{ retry_delay }}" + until: clusterMaster_peers_info.status_code == 200 - name: Create list of clusterMaster peers set_fact: From d40bf46624a976e21679afc52dd2c8a115a1ca61 Mon Sep 17 00:00:00 2001 From: Jack Meixensperger Date: Thu, 19 Dec 2024 15:20:33 -0800 Subject: [PATCH 2/2] fix status key --- roles/splunk_monitor/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/splunk_monitor/tasks/main.yml b/roles/splunk_monitor/tasks/main.yml index 661b5b39..b6fdaed2 100644 --- a/roles/splunk_monitor/tasks/main.yml +++ b/roles/splunk_monitor/tasks/main.yml @@ -41,7 +41,7 @@ when: splunk_indexer_cluster or splunk.multisite_master is defined retries: "{{ retry_num }}" delay: "{{ retry_delay }}" - until: clusterMaster_peers_info.status_code == 200 + until: clusterMaster_peers_info.status == 200 - name: Create list of clusterMaster peers set_fact: