ansible-role-elasticsearch/tasks/service.yml

14 lines
263 B
YAML
Raw Normal View History

2020-02-09 14:15:24 +00:00
---
2023-07-05 09:36:13 +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
2023-07-05 09:36:13 +00:00
- 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