geerlingguy / ansible-role-elasticsearch

Ansible Role - Elasticsearch
https://galaxy.ansible.com/geerlingguy/elasticsearch/
MIT License
185 stars 208 forks source link

Recent Ansible moans about repository file permissions #69

Closed nicenemo closed 4 years ago

nicenemo commented 4 years ago

A recent Ansible moans about repository file permissions.

When using this role I get:

[WARNING]: File
'/etc/apt/sources.list.d/artifacts_elastic_co_packages_7_x_apt.list' created
with default permissions '600'. The previous default was '666'. Specify 'mode'
to avoid this warning.

solution

in the file _.../tasks/main.yml add a line:

'``` mode: '0600'



> Same is true for your logstash repository, and probably a few others.
geerlingguy commented 4 years ago

I believe this change was walked back recently, and in addition, I did add mode: 0660 recently. Closing this out—I'll hopefully tag a new release tonight.