# Create keystore and keys with ansible

**URL:** <https://discuss.elastic.co/t/create-keystore-and-keys-with-ansible/267381>\
**Category:** Logstash\
**Tags:** elastic-stack-security\
**Created:** [March 16, 2021, 1:54pm UTC](https://discuss.elastic.co/t/create-keystore-and-keys-with-ansible/267381 "2021-03-16T13:54:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soren\_vdc](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Soren\_vdc](https://discuss.elastic.co/u/Soren_vdc)\
**Post date:** [March 16, 2021, 1:54pm UTC](https://discuss.elastic.co/t/create-keystore-and-keys-with-ansible/267381/1 "2021-03-16T13:54:58Z")

</div>

Hi,

I want to create ansible code to secure the password of the logstash user to send data to Elasticsearch. I have checked with the procedure with the keystore and it works fine to create the keystore but to add the key, I have an issue to answer the password on the prompt. Did someone already configured this by ansible?

thx!

---

<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:** [April 13, 2021, 1:55pm UTC](https://discuss.elastic.co/t/create-keystore-and-keys-with-ansible/267381/2 "2021-04-13T13:55:42Z")

</div>

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