I'm using Ansible to install Elasticsearch and when I want to start the Elasticsearch with service module it won't start but when I execute "service elasticsearch start" manually it is working normally.
- name: Start elastic service: name: elasticsearch state: started enabled: yes use: service tags: elastic
Elastic error log
In Ansible it is reporting "changed" for the task execution and not failing.
Other alternatives also not working:
- "command" module
command: service elasticsearch start
- "use: sysvinit" parameter in service module
Environment: Ansible 2.10.9, Debian 10.9, Elasticsearch 7.12.1, Python 3.7.3