/
elk.yml
executable file
·47 lines (37 loc) · 1.05 KB
/
elk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
# ELK playbooks to pre-configure systems, and install/start individual components.
#
# Note: ELK services MUST be brought up in the order below.
- name: install and configure ELK stack
hosts: all
gather_facts: true
vars:
elk_cluster_name: elk-demo
tasks:
- ansible.builtin.include_role:
name: pre
- ansible.builtin.include_role:
name: elasticsearch
- name: validate that elasticsearch is up and available
ansible.builtin.uri:
url: http://{{ ansible_default_ipv4.address }}:9200
status_code: 200
register: result
until: result.status == 200
retries: 60
delay: 2
- ansible.builtin.include_role:
name: kibana
- ansible.builtin.include_role:
name: logstash
- name: wait for service to begin listening
ansible.builtin.wait_for:
port: 5055
delay: 30
# - ansible.builtin.include_role:
# name: filebeat
# - ansible.builtin.include_role:
# name: ssl
# - ansible.builtin.include_role:
# name: xpack
...