-
Notifications
You must be signed in to change notification settings - Fork 0
/
elk_playbook.yml
39 lines (33 loc) · 903 Bytes
/
elk_playbook.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
---
- hosts: logs
gather_facts: yes
vars_files:
- elk_vars.yml
roles:
- geerlingguy.repo-epel
- geerlingguy.java
- geerlingguy.nginx
- geerlingguy.elasticsearch
- geerlingguy.elasticsearch-curator
- geerlingguy.kibana
- geerlingguy.logstash
- geerlingguy.logstash-forwarder
tasks:
- name: Remove geerlingguys 14-solr.conf that causes problems with multiline plugin for Logstash
file:
state: absent
path: /etc/logstash/conf.d/14-solr.conf
- name: Enable http input plugin for Logstash
copy:
dest: /etc/logstash/conf.d/02-http.conf
content: |
input {
http {
id => "my_http_plugin_id"
port => 8080
}
}
- name: Restart logstach so it reads update conf files
service:
name: logstash
state: restarted