Install elasticsearch plugins with Ansible

hello,

how to install elasticsearch plugin with ansible??

I have this command:

shell: chdir=/usr/share/elasticsearch/plugins/ state=present name={{ item }} owner=root group=root mode=0755

with_items:

  • royrusso/elasticsearch-HQ
  • mobz/elasticsearch-head
  • lukas-vlcek/bigdesk

But nothing to install!!

tks for help

We are releasing an Ansible playbook very soon, it should help!

That Ansible task is a mix-up of options for both the shell module and the file module. I'm not even sure what you're trying to do—just creating a directory for the plugin won't accomplish anything. I'd expect a task for installing plugins to run .../plugin install {{ item }}.