default: TASK [Install delete-by-query plugin] ******************************************
default: fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["/opt/elasticsearch-2.4.1/bin/plugin", "install", "delete-by-query"], "delta": "0:00:00.009506", "end": "2018-07-07 14:07:53.914319", "msg": "non-zero return code", "rc": 1, "start": "2018-07-07 14:07:53.904813", "stderr": "which: no java in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)", "stderr_lines": ["which: no java in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)"], "stdout": "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME", "stdout_lines": ["Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME"]}
default: ...ignoring