2015-10-22 19:09:53 +01:00
# Check for mandatory parameters
2015-11-25 15:28:09 +00:00
- fail : msg="es_instance_name must be specified"
when : es_instance_name is not defined
2015-10-22 19:09:53 +01:00
2015-12-13 22:46:50 +00:00
- 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'])}}
2015-11-26 17:26:28 +00:00
2015-12-13 22:46:50 +00:00
- debug : msg="WARNING - It is recommended you specify the parameter 'http.port' when multicast is disabled"
2015-11-26 17:26:28 +00:00
when : not multi_cast and es_config['http.port'] is not defined
2015-10-22 19:09:53 +01:00
2015-12-13 22:46:50 +00:00
- debug : msg="WARNING - It is recommended you specify the parameter 'transport.tcp.port' when multicast is disabled"
2015-11-26 17:26:28 +00:00
when : not multi_cast and es_config['transport.tcp.port'] is not defined
2015-11-25 15:28:09 +00:00
2015-12-13 22:46:50 +00:00
- debug : msg="WARNING - It is recommended you specify the parameter 'discovery.zen.ping.unicast.hosts' when multicast is disabled"
2015-11-26 17:26:28 +00:00
when : not multi_cast and es_config['discovery.zen.ping.unicast.hosts'] is not defined
2015-11-25 15:28:09 +00:00
2015-11-26 14:19:25 +00:00
#If the user attempts to lock memory they must specify a heap size
- fail : msg="If locking memory with bootstrap.mlockall a heap size must be specified"
2015-11-26 14:45:00 +00:00
when : es_config['bootstrap.mlockall'] is defined and es_config['bootstrap.mlockall'] == True and es_heap_size is not defined