ansible-role-elasticsearch/tasks/service.yml

13 lines
263 B
YAML

---
- name: Enable and start service
ansible.builtin.service:
name: elasticsearch
state: started
enabled: true
tags: elasticsearch
- name: Wait for api is available
ansible.builtin.wait_for:
port: 9200
timeout: 10
tags: elasticsearch