I am trying to use ansible to deploy an ELK stack on a centos vm using docker-compose. The first part I am doing is copying the config files to the VM and then mounting it to the docker-compose from that directory. Everything works fine until I turn on X-pack. When x-pack is on. I also transfer the certificate key looking like this.
Here is my elasticsearch.yml
When I run the ansible playbook. all works fine but I need to enter the container and use the set-password utility to set elastic password and it works. I do the same thing for KIbana but it keeps saying "Waiting for Kibana server is not ready yet"
MY main question is that is there anyway I can just pass the passwords using the config and have user change it after. And why cannot I get my KIbana container running.