# Use a static keystore in ansible for elsaticsarch deployment

**URL:** <https://discuss.elastic.co/t/use-a-static-keystore-in-ansible-for-elsaticsarch-deployment/380362>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 23, 2025, 1:36am UTC](https://discuss.elastic.co/t/use-a-static-keystore-in-ansible-for-elsaticsarch-deployment/380362 "2025-07-23T01:36:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huanghaiqing1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/huanghaiqing1/32/125746_2.png) [@huanghaiqing1](https://discuss.elastic.co/u/huanghaiqing1)\
**Post date:** [July 23, 2025, 1:36am UTC](https://discuss.elastic.co/t/use-a-static-keystore-in-ansible-for-elsaticsarch-deployment/380362/1 "2025-07-23T01:36:35Z")

</div>

Hello, here we want to deploy elasticsearch by ansible. We know there is a folder certs/\*, where stores key-pairs for nodes info transporation or access from kibana/logstash. My question is whether there is a way to prepare a static company signed key pair or a static set of keystore created by elasticsearch-certutil in ansible-code repo. And deploy elasticsearch everytime from ansible then use the existing one.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 24, 2025, 3:16am UTC](https://discuss.elastic.co/t/use-a-static-keystore-in-ansible-for-elsaticsarch-deployment/380362/2 "2025-07-24T03:16:00Z")

</div>

The `certs` folder is part of Elasticsearch security auto-configuration.

You don't need to use auto-configuration, and you probably don't want to if you've got an external configuration management tool like Ansible.
