From 0f64ced0d85d8d374d8130a070c71b88674b5a02 Mon Sep 17 00:00:00 2001 From: Chris Lin Date: Wed, 6 Sep 2023 15:06:26 -0700 Subject: [PATCH] Added handling for mission control app installation --- roles/splunk_common/tasks/provision_apps.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/splunk_common/tasks/provision_apps.yml b/roles/splunk_common/tasks/provision_apps.yml index 3a06df86..bfef901f 100644 --- a/roles/splunk_common/tasks/provision_apps.yml +++ b/roles/splunk_common/tasks/provision_apps.yml @@ -3,6 +3,10 @@ vars: app_url: "{{ item }}" loop: "{{ app_list }}" + when: + - '("missioncontrol" not in item) or + (("ta_missioncontrol" in item) and (splunk.role == "splunk_indexer")) or + (("ta_missioncontrol" not in item) and ("missioncontrol" in item) and (splunk.role == "splunk_search_head"))' - name: Flush restart handlers meta: flush_handlers @@ -20,4 +24,4 @@ - '"itsi" in installed_apps' - name: Flush restart handlers - meta: flush_handlers + meta: flush_handlers \ No newline at end of file