-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloadKibana.yml
28 lines (27 loc) · 912 Bytes
/
loadKibana.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
---
- name: install kibana
hosts: elk
become: true
vars_files:
- vars/variables.yml
tasks:
- name: download sample dashboards
get_url:
url: https://download.elastic.co/beats/dashboards/beats-dashboards-1.1.0.zip
dest: /root/
- name: Ensure unzip is installed.
apt: name=unzip state=present
- name: extract archive
command: unzip -o /root/beats-dashboards-1.1.0.zip -d /root/
- command: ./load.sh
args:
chdir: /root/beats-dashboards-1.1.0
- name: load topbeat ndex template n Elastic search
get_url:
url: https://raw.githubusercontent.com/elastic/topbeat/master/etc/topbeat.template.json
dest: /root/
- command: "curl -XPUT 'http://{{ elastic_interface }}:{{ elastic_port }}/_template/topbeat' [email protected]"
args:
chdir: /root/
register: output
- debug: var=output.stdout