# Installing elasticsearch plugins with ansible

**URL:** <https://discuss.elastic.co/t/installing-elasticsearch-plugins-with-ansible/58692>\
**Category:** Elasticsearch\
**Created:** [August 23, 2016, 2:15pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-plugins-with-ansible/58692 "2016-08-23T14:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terrence\_Pugh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terrence_pugh/32/11454_2.png) [@Terrence\_Pugh](https://discuss.elastic.co/u/Terrence_Pugh)\
**Post date:** [August 23, 2016, 2:15pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-plugins-with-ansible/58692/1 "2016-08-23T14:15:38Z")

</div>

I'm using ansible for elasticsearch ( [ansible-elasticsearch](https://github.com/elastic/ansible-elasticsearch)) and need to install plugins from a url , local file, or alternative repo. is there a way I can reference a plugin by something other than just:  
`es_plugins: -plugin: elasticsearch/license version: latest`

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [August 24, 2016, 6:14am UTC](https://discuss.elastic.co/t/installing-elasticsearch-plugins-with-ansible/58692/2 "2016-08-24T06:14:52Z")

</div>

Hi,

the same question seems to be answered on Stackoverflow already: [http://stackoverflow.com/questions/39103926/install-elasticsearch-plugins-with-ansible](http://stackoverflow.com/questions/39103926/install-elasticsearch-plugins-with-ansible)

However, there is an [open ticket to support plugin installation via URI](https://github.com/elastic/ansible-elasticsearch/issues/3) so this does not work currently.

Daniel

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [October 14, 2016, 11:44am UTC](https://discuss.elastic.co/t/installing-elasticsearch-plugins-with-ansible/58692/3 "2016-10-14T11:44:32Z")

</div>

Hi @danielmitterdorfer

Thanks for the link which you shared..

I tried to follow the same setup by giving the below lines as like this,

```
es_plugins:
  - plugin: https://github.com/royrusso/elasticsearch-HQ/zipball/master

```

Below is the response I am getting when I ran ansible-playbook standard.yml file

> TASK [elasticsearch : Install elasticsearch plugins] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> basic  
> [WARNING]: The loop variable 'item' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to  
> avoid variable collisions and unexpected behavior.

> skipping: [localhost] =\> (item={u'plugin': u'[https://github.com/royrusso/elasticsearch-HQ/zipball/master](https://github.com/royrusso/elasticsearch-HQ/zipball/master)'})

Please let me know your thoughts.

Thanks,  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:12pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-plugins-with-ansible/58692/4 "2017-07-05T22:12:18Z")

</div>


