Added Kibana yml
Kibana can now be installed. Updated ElasticSearch.
This commit is contained in:
parent
d000d9616c
commit
35467bf21a
@ -31,10 +31,22 @@
|
|||||||
apt:
|
apt:
|
||||||
name: elasticsearch
|
name: elasticsearch
|
||||||
|
|
||||||
- name: Start Service
|
- name: Allow port 9200 though UFW
|
||||||
|
become: true
|
||||||
|
ufw:
|
||||||
|
rule: allow
|
||||||
|
port: 9200
|
||||||
|
#name: ElasticSearch
|
||||||
|
|
||||||
|
- name: Service reload daemon
|
||||||
|
become: true
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
|
||||||
|
- name: Start ElasticSearch
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
name: elasticsearch
|
name: elasticsearch
|
||||||
|
enabled: yes
|
||||||
|
|
||||||
|
|
||||||
|
51
playbook/linux/elastic/install-kibana.yml
Normal file
51
playbook/linux/elastic/install-kibana.yml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
|
||||||
|
- name: Install Kibana
|
||||||
|
hosts: elastic
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Install Elastic GPG Key
|
||||||
|
become: true
|
||||||
|
apt_key:
|
||||||
|
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||||
|
state: present
|
||||||
|
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
||||||
|
|
||||||
|
- name: Install apt-transport-https
|
||||||
|
apt:
|
||||||
|
name: apt-transport-https
|
||||||
|
|
||||||
|
- name: Add Elastic Repo
|
||||||
|
become: true
|
||||||
|
copy:
|
||||||
|
src: elastic-7.x.list
|
||||||
|
dest: /etc/apt/sources.list.d/
|
||||||
|
backup: yes
|
||||||
|
|
||||||
|
- name: Update Packages
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Install kibana
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name: kibana
|
||||||
|
|
||||||
|
- name: Allow port 5601
|
||||||
|
become: true
|
||||||
|
ufw:
|
||||||
|
rule: allow
|
||||||
|
port: 5601
|
||||||
|
|
||||||
|
- name: Service daemon reload
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
daemon_reload: yes
|
||||||
|
|
||||||
|
- name: Start Kibana
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
name: kibana.service
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
|
Loading…
Reference in New Issue
Block a user