Open thannaske opened 1 year ago
[Triage] Could you provide us which commit you are using to reproduce this issue? cc: @saravanan30erd Could you provide any help here? Thanks!
It's because used 'local_action' in security task to generate certificates. Then, task with 'local_action' plays on your ansible host, not deployed server.
Java with JAVA_HOME must be on your ansible host to pass the task.
Ah, that was indeed the cause for the problem. That's a bit counter-intuitive to be honest. It should be at least pointed out in the docs.
@kostyasimanov @thannaske Thanks for your comment. Would you be able to raise a PR to update the documentation?
Describe the bug When trying to bootstrap a new OpenSearch cluster on Ubuntu 20.04 using the latest
main
version of this repository, the process is stuck during the initial deployment:As you can see, the script complains about not finding the
java
binary. However, when connecting to the server und running thejava
binary manually, everything works as intended:To Reproduce Steps to reproduce the behavior:
JAVA_HOME
is in the environmentopensearch-project/ansible-playbook
and execute the playbook according to the READMEExpected behavior The error shouldn't occur as Java is not only properly installed but also the
JAVA_HOME
variable is properly set and thejava
binary works as intended.Playbook Name
opensearch/tasks/security.yaml
Host/Environment (please complete the following information):
Additional context Executed command:
Inventory: