You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tasks/checkParameters.yml
+4-4
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@
3
3
- fail: msg="es_instance_name must be specified"
4
4
when: es_instance_name is not defined
5
5
6
-
- set_fact: multi_cast={{ (es_version | version_compare('2.0', '<') and es_config['discovery.zen.ping.multicast.enabled'] is not defined) or es_config['discovery.zen.ping.multicast.enabled']}}
6
+
- set_fact: multi_cast={{ (es_version | version_compare('2.0', '<') and es_config['discovery.zen.ping.multicast.enabled'] is not defined) or (es_config['discovery.zen.ping.multicast.enabled'] is defined and es_config['discovery.zen.ping.multicast.enabled'])}}
7
7
8
-
- fail: msg="Parameter 'http.port' must be defined when multicast is disabled"
8
+
- debug: msg="WARNING - It is recommended you specify the parameter 'http.port' when multicast is disabled"
9
9
when: not multi_cast and es_config['http.port'] is not defined
10
10
11
-
- fail: msg="Parameter 'transport.tcp.port' must be defined when multicast is disabled"
11
+
- debug: msg="WARNING - It is recommended you specify the parameter 'transport.tcp.port' when multicast is disabled"
12
12
when: not multi_cast and es_config['transport.tcp.port'] is not defined
13
13
14
-
- fail: msg="Parameter 'discovery.zen.ping.unicast.hosts' must be defined when multicast is disabled"
14
+
- debug: msg="WARNING - It is recommended you specify the parameter 'discovery.zen.ping.unicast.hosts' when multicast is disabled"
15
15
when: not multi_cast and es_config['discovery.zen.ping.unicast.hosts'] is not defined
16
16
17
17
#If the user attempts to lock memory they must specify a heap size
failed_when: "'Failed to install' in command_result.stderr"
13
-
changed_when: command_result.rc == 0
14
+
command: "{{es_home}}/bin/plugin install {{ item.plugin }}{% if item.version is defined and item.version != '' %}/{{ item.version }}{% endif %} --silent"
15
+
register: plugin_installed
16
+
failed_when: "'Failed to install' in plugin_installed.stderr"
17
+
changed_when: plugin_installed.rc == 0
14
18
with_items: es_plugins
15
-
when: ( ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' )
19
+
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Debian'
0 commit comments