Ansible repo to install ELK (elasticsearch, logstash, Kibana) stack
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Ansible repo to install ELK (elasticsearch, logstash, Kibana) stack

Usage and Example Playbook

Install Java, Elasticsearch, Logstash and Kibana roles from Ansible Galaxy into your roles directory of ELK stack repo.

Installing multiple roles from a file

Beginning with Ansible 1.8 it is possible to install multiple roles by including the roles in a requirements.yml file. The format of the file is YAML, and the file extension must be either .yml or .yaml.

Use the following command to install roles included in requirements.yml into roles/ directory of ELK stack repo:

$ ansible-galaxy install -r requirements.yml -p roles/

OR install one by one

$ ansible-galaxy install
$ ansible-galaxy install avinash6784.elasticsearch
$ ansible-galaxy install avinash6784.logstash
$ ansible-galaxy install avinash6784.kibana

OR download manually

$ git clone
$ git clone
$ git clone
$ git clone

The code should reside in the roles directory of elk stack ( See ansible documentation for more information on roles ).

Run the playbook

First create a playbook including the git role, naming it elk-stack-install.yml.

- name: Install ELK Stack
  hosts: localhost
  become: true
    - { role: ansible-role-elasticsearch }
    - { role: ansible-role-logstash }
    - { role: ansible-role-kibana }

$ ansible-playbook -i hosts elk-stack-install.yml