From 20b505088d37c19ae9a706fc628acdc2e5b5ce19 Mon Sep 17 00:00:00 2001 From: MEGHANA R Date: Fri, 17 Mar 2023 17:39:05 +0530 Subject: [PATCH] Update security config path based on the Opensearch version --- ansible_scripts/group_vars/all/all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_scripts/group_vars/all/all.yml b/ansible_scripts/group_vars/all/all.yml index 1ae273f..3b80896 100644 --- a/ansible_scripts/group_vars/all/all.yml +++ b/ansible_scripts/group_vars/all/all.yml @@ -25,7 +25,7 @@ xmx_value: "{{ RAMGB | int }}" os_conf_dir: "{{ os_home }}/config" os_plugin_bin_path: "{{ os_home }}/bin/opensearch-plugin" -os_sec_plugin_conf_path: "{{ os_home }}/plugins/opensearch-security/securityconfig" +os_sec_plugin_conf_path: "{{ os_home + '/config/opensearch-security' if os_version is version('2.0.0', operator='>=', strict=True) else os_home + '/plugins/opensearch-security/securityconfig' }}" os_sec_plugin_tools_path: "{{ os_home }}/plugins/opensearch-security/tools" os_api_port: 9200