ansible-role-elasticsearch/tasks/service.yml

13 lines
231 B
YAML

---
- name: enable and start service
systemd:
name: elasticsearch
state: started
enabled: true
tags: elasticsearch
- name: wait for api is available
wait_for:
port: 9200
timeout: 10
tags: elasticsearch