Kibana Playbook

The Ansible playbook below can be used to quickly install a Kibana server.

---
- hosts: KibanaServers
  tasks:
  - name: Install some packages, in this case Java and apt-transport-https
    apt:
      name: "{{ packages }}"
      update_cache: yes
    vars:
      packages:
      - default-jre
      - apt-transport-https
  - name: Add an Apt signing key, will not download if present
    apt_key:
      url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
      state: present
  - name: Add Elasticsearch repository into sources list
    apt_repository:
      repo: deb https://artifacts.elastic.co/packages/6.x/apt stable main
      state: present
  - name: Update repositories cache and install Kibana package
    apt:
      name: kibana
      update_cache: yes

Below some link to other playbooks:

You may also like...