# X- pack for elasticsearch and Kibana

**URL:** <https://discuss.elastic.co/t/x-pack-for-elasticsearch-and-kibana/235754>\
**Category:** Elasticsearch\
**Created:** [June 4, 2020, 12:41pm UTC](https://discuss.elastic.co/t/x-pack-for-elasticsearch-and-kibana/235754 "2020-06-04T12:41:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parthey\_Khanderia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parthey_khanderia/32/48423_2.png) [@Parthey\_Khanderia](https://discuss.elastic.co/u/Parthey_Khanderia)\
**Post date:** [June 4, 2020, 12:41pm UTC](https://discuss.elastic.co/t/x-pack-for-elasticsearch-and-kibana/235754/1 "2020-06-04T12:41:43Z")

</div>

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.

```auto

```

> `volumes:  
> - "/home/centos/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:z"  
> - "/home/centos/elastic-stack-ca.p12:/usr/share/elasticsearch/config/elastic-stack-ca.p12:z"

```auto

```

Here is my elasticsearch.yml

```auto

```

> xpack.security.enabled=true  
> - xpack.security.transport.ssl.enabled=true  
> - xpack.security.transport.ssl.keystore.type=PKCS12  
> - xpack.security.transport.ssl.verification\_mode=certificate  
> - xpack.security.transport.ssl.keystore.path=elastic-stack-ca.p12  
> - xpack.security.transport.ssl.truststore.path=elastic-stack-ca.p12  
> - xpack.security.transport.ssl.truststore.type=PKCS12

```auto

```

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.  
`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 2, 2020, 12:41pm UTC](https://discuss.elastic.co/t/x-pack-for-elasticsearch-and-kibana/235754/2 "2020-07-02T12:41:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
