Commit 267a6fc2 authored by Daniel Berman's avatar Daniel Berman Committed by GitHub
Browse files

Update main.yml

parent 2dc809a7
......@@ -2,33 +2,37 @@
#
# Installing Kibana
#
# Install Kibana
- name: Install Kibana with apt-get
- shell: sudo apt-get install kibana
# Install Kibana
- name: Install Kibana with apt
apt:
name: kibana
update_cache: yes
# Configurations
- name: Kibana configurations
lineinfile:
- name: Updating the config file to allow outside access
lineinfile:
destfile: /etc/kibana/kibana.yml
regexp: 'server.host:'
line: 'server.host: 0.0.0.0'
- name: Kibana configurations
lineinfile:
- name: Defining server port
lineinfile:
destfile: /etc/kibana/kibana.yml
regexp: 'server.port:'
line: 'server.port: 5601'
- name: Kibana configurations
lineinfile:
- name: Defining Elasticsearch URL
lineinfile:
destfile: /etc/kibana/kibana.yml
regexp: 'elasticsearch.url:'
line: 'elasticsearch.url: "http://localhost:9200"'
# Starting Kibana
- name: Enabling Kibana service
systemd:
name: kibana
enabled: yes
daemon_reload: yes
# Start Kibana service
- name: Starting Kibana service
systemd:
- name: Starting Kibana
service:
name: kibana
state: started
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment