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