/usr/share/kibana/bin/kibana-verification-code
Now: Both need an interaction with the GUI. This solution is not suitable for an automatic installation (eg via ansible).
Is there a way to do the same via CLI / bash?
I did not find anything so far in the official documentation.
If someone has insight in this (someone from Elastic perhaps ), please give me a hint.
But you probably are better off configuring Elasticsearch and Kibana explicitly, replicating the complete manual process in a scripted manner so that you can control each and every aspect of the installation/provisioning. I'd start by looking at Manually configure security | Elasticsearch Guide [8.2] | Elastic which has the installation and security configuration steps needed for both Elasticsearch and Kibana and put those in an ansible recipe
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.