ansible-role-elasticsearch/tasks/service.yml

14 lines
263 B
YAML
Raw Normal View History

2020-02-09 14:15:24 +00:00
---
- name: enable and start service
2022-04-07 12:55:14 +00:00
ansible.builtin.service:
2020-02-09 14:15:24 +00:00
name: elasticsearch
state: started
enabled: true
tags: elasticsearch
- name: wait for api is available
2022-04-07 12:55:14 +00:00
ansible.builtin.wait_for:
2020-02-09 14:15:24 +00:00
port: 9200
timeout: 10
tags: elasticsearch