We had some Ansible automation break when going to Elasticsearch 6.3. The ./elasticsearch-keystore add command now prompts before overwriting a value. I've attempted to suppress this using the --stdin and --silent flags to no avail. Any suggestions?
printf value | ./elasticsearch-keystore add --stdin bootstrap.password --silent
results in the following:
"stderr_lines": [
"Exception in thread \"main\" java.lang.IllegalStateException: unable to read from standard input; is standard input open and a tty attached?",
"\tat org.elasticsearch.cli.Terminal$SystemTerminal.readText(Terminal.java:168)",
"\tat org.elasticsearch.cli.Terminal.promptYesNo(Terminal.java:101)",
"\tat org.elasticsearch.common.settings.AddStringKeyStoreCommand.execute(AddStringKeyStoreCommand.java:78)",
"\tat org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)",
"\tat org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)",
"\tat org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79)",
"\tat org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)",
"\tat org.elasticsearch.cli.Command.main(Command.java:90)",
"\tat org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:41)"