# ElasticSearch via Ansible

**URL:** <https://discuss.elastic.co/t/elasticsearch-via-ansible/83260>\
**Category:** Elastic Community and Ecosystem\
**Created:** [April 21, 2017, 10:30pm UTC](https://discuss.elastic.co/t/elasticsearch-via-ansible/83260 "2017-04-21T22:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![StivOstenberg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stivostenberg/32/4681_2.png) [@StivOstenberg](https://discuss.elastic.co/u/StivOstenberg)\
**Post date:** [April 21, 2017, 10:30pm UTC](https://discuss.elastic.co/t/elasticsearch-via-ansible/83260/1 "2017-04-21T22:30:27Z")

</div>

Trying to bring up a test environment to learn Terraform and Ansible. We are planning to implement an ELK stack and I need to make sure we do it right. I read the notes at "[https://www.elastic.co/blog/deploying-elasticsearch-with-ansible](https://www.elastic.co/blog/deploying-elasticsearch-with-ansible)" and while I THINK I got things done right, I am not sure I got stuff done right cause it doesnt work.  
I did not use Docker, as in the example. I used Terraform to stand up a sample environment, and created an ES instance. I have been able to use Ansible to get the NAT, and Webserver going. I tried to copy the playbook and assorted subdirectories but it does not seem to work.  
I now have the playbook (renamed to 5-install\_officialelasticsearch.yaml) in my Ansible playbooks folder. I have a folder named "roles" which contains a folder named "elasticsearch". ls shows the following:  
ansible.cfg defaults elasticsearch.iml files filter\_plugins Gemfile Gemfile.lock handlers LICENSE meta [README.md](http://README.md) tasks templates test vars

When I try to run the playbook, however, it just pops straight back:  
[stiv@stivopconlinux playbooks]$ ansible-playbook -i es1, 5-install\_officialelasticsearch.yaml

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[stiv@stivopconlinux playbooks]$

Help?

---

<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:** [May 19, 2017, 10:31pm UTC](https://discuss.elastic.co/t/elasticsearch-via-ansible/83260/2 "2017-05-19T22:31:58Z")

</div>

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