# Elasticsearch.yml with Ansible Galaxy

**URL:** <https://discuss.elastic.co/t/elasticsearch-yml-with-ansible-galaxy/210325>\
**Category:** Elasticsearch\
**Created:** [December 3, 2019, 10:28am UTC](https://discuss.elastic.co/t/elasticsearch-yml-with-ansible-galaxy/210325 "2019-12-03T10:28:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spike83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spike83/32/47036_2.png) [@spike83](https://discuss.elastic.co/u/spike83)\
**Post date:** [December 3, 2019, 10:28am UTC](https://discuss.elastic.co/t/elasticsearch-yml-with-ansible-galaxy/210325/1 "2019-12-03T10:28:49Z")

</div>

Hi,

I have built an elasticsearch server using Ansible Galaxy scripts provided by Elastic. I'm finding that once it's running the elasticsearch.yml is in a very basic format and any manual changes cause the elasticsearch service to not start.

Im trying with 7.4 on Amazon Linux 2.

I have also tried replacing my elasticsearch.yml with the defauly out the box version from the downloaded elasticseach zip - having ammended the parameters needed. this also wont allow the service to start.

Is there something that the elastic Ansible script is doing that isn't standard?

[https://galaxy.ansible.com/elastic/elasticsearch](https://galaxy.ansible.com/elastic/elasticsearch)

Thanks

---

<div class="post-metadata">

**Author:** ![spike83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spike83/32/47036_2.png) [@spike83](https://discuss.elastic.co/u/spike83)\
**Post date:** [December 3, 2019, 11:32am UTC](https://discuss.elastic.co/t/elasticsearch-yml-with-ansible-galaxy/210325/2 "2019-12-03T11:32:39Z")

</div>

Ok a little further.

It appears the Galaxy build places the java files into /usr/share/elasticsearch with root user/group permissions. The service then has no access to this folder to create a java log file in this location.

---

<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:** [December 31, 2019, 11:32am UTC](https://discuss.elastic.co/t/elasticsearch-yml-with-ansible-galaxy/210325/3 "2019-12-31T11:32:41Z")

</div>

Closed on December 31, 2019, 11:32am UTC

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