Artisan DĂ©veloppeur

Qualité, amélioration continue, agilité, professionnalisme.

2 options to install elasticsearch plugins with ansible

Little post today, to remember, if you want to install plugins for elasticsearch with ansible (or others automation tool) you need to pass:

--batch --silent

According to the –help option:

Option Description
------ -----------
-E <KeyValuePair> Configure a setting
-b, --batch Enable batch mode explicitly, automatic confirmation of
security permission
-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
help for elasticsearch plugin install

Here my ansible task:

# install x-pack for elasticsearch
- name: Install x-pack for elasticsearch
  command: bin/elasticsearch-plugin install x-pack --silent --batch
  args:
      chdir: /usr/share/elasticsearch
ansible task install x-pack elasticsearch

And to install x-pack in Kibana:

# install x-pack for kibana
- name: Install x-pack for kibana
  command: bin/kibana-plugin install x-pack --silent
  args:
      chdir: /usr/share/kibana

 

As always improvements en comments are welcome 🙂

Leave a reply

Your email address will not be published.

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.