# Setup-passwords from ansible script

**URL:** <https://discuss.elastic.co/t/setup-passwords-from-ansible-script/123515>\
**Category:** Elasticsearch\
**Created:** [March 12, 2018, 9:35am UTC](https://discuss.elastic.co/t/setup-passwords-from-ansible-script/123515 "2018-03-12T09:35:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [March 12, 2018, 9:45am UTC](https://discuss.elastic.co/t/setup-passwords-from-ansible-script/123515/2 "2018-03-12T09:45:35Z")

</div>

Hi Olivier,

`setup-password` is not meant to be scriptable or used as part of a deployment script. It basically wraps a number of calls to the `_password` API and you should do the same in your ansible playbook.

@TimV has written some useful instructions [here](https://discuss.elastic.co/t/how-to-set-passwords-for-built-in-users-in-batch-mode/119655/6) on how to make use of the API and the `bootstrap.password` that might come in handy

---

_[View the full topic](https://discuss.elastic.co/t/setup-passwords-from-ansible-script/123515)._
