Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit ba5a3e54 authored by Nicolas's avatar Nicolas
Browse files

feat: add kibana7

parent 4640e019
No related branches found
No related tags found
No related merge requests found
- name: "Install Kibana 7"
hosts: kb7
tasks:
- name: Install components and prerequisites
include_tasks: 01_install-components.yaml
- name: Install Kibana
include_tasks: 02_install-kibana.yaml
- name: Update Kibana configuration file
lineinfile:
path: /etc/kibana/kibana.yml
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
with_items:
- { regexp: '^server.host:', line: 'server.host: 0.0.0.0' }
- { regexp: '^server.port:', line: 'server.port: 5601' }
- { regexp: '^server.name:', line: 'server.name: "kb7"' }
- { regexp: '^elasticsearch.hosts:', line: 'elasticsearch.hosts: ["http://es7-1:9200"]' }
- name: Reload daemon
systemd:
daemon_reload: yes
- name: Enable Kibana service
systemd:
name: kibana
enabled: yes
- name: Start Kibana service
systemd:
name: kibana
state: restarted
- name: Install JRE
apt:
name: default-jre
state: present
- name: Install JDK
apt:
name: default-jdk
state: present
- name: Install gnupg2
apt:
name: gnupg2
state: present
- name: Add Kibana repository key
apt_key:
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
id: "46095ACC8548582C1A2699A9D27D666CD88E42B4"
state: present
- name: Add Kibana repository
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/7.x/apt stable main"
state: present
- name: Update APT
apt:
update_cache: yes
- name: Install Kibana
apt:
name: kibana=7.17.11
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment