Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Ansible Role for Kibana and its installation on CentOS 7

In our previous article, we discussed how to Install Kibana on CentOS 7. Having the ability to install Kibana from a single command is a wonderous thing. So, in this post, we will see Kibana installation using Ansible playbook or role to do just that.

Also we have already discussed regarding how to create Ansible Playbooks and Ansible Roles, so lets jump directly into the usage and examples of Ansible Roles/Playbooks.

Install Kibana with Ansible

We have already created and submitted Ansible Role to install Kibana to Ansible Galaxy, so in this section we will see how to get download role from ansible galaxy into your work-space and how we can use it.
Install or download from Ansible Galaxy:

[ansible@localhost ~]$ ansible-galaxy install avinash6784.kibana -p ./roles

See Ansible Galaxy help for more options

ansible@localhost$ ansible-galaxy --help

Download from direct github:
Download manually from github like as below,

[ansible@localhost ~]$ git clone https://github.com/avinash6784/ansible-role-kibana.git

The code should reside in the roles directory of your ansible playbooks work-space. ( See ansible documentation for more information on roles ), in a folder kibana.
Run the playbook: 
First create a playbook like as below,

[ansible@localhost ~]$ vim test.yml
- name: Install Kibana
  hosts: localhost
  become: true
  roles:
    - kibana
[ansible@localhost ~]$ ansible-playbook -i hosts test.yml

For more detail information regarding usage of above ansible role of kibana, please visit GitHub Repo README.

Follow Me:

The post Ansible Role for Kibana and its installation on CentOS 7 appeared first on DevOps Techie.



This post first appeared on Devops Techie - Solutios For Devops Tools And Practices, please read the originial post: here

Share the post

Ansible Role for Kibana and its installation on CentOS 7

×

Subscribe to Devops Techie - Solutios For Devops Tools And Practices

Get updates delivered right to your inbox!

Thank you for your subscription

×