# Updating plugins with the ansible\\elasticsearch playbook

**URL:** <https://discuss.elastic.co/t/updating-plugins-with-the-ansible-elasticsearch-playbook/245952>\
**Category:** Elasticsearch\
**Created:** [August 21, 2020, 7:07pm UTC](https://discuss.elastic.co/t/updating-plugins-with-the-ansible-elasticsearch-playbook/245952 "2020-08-21T19:07:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![biggtimber](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@biggtimber](https://discuss.elastic.co/u/biggtimber)\
**Post date:** [August 21, 2020, 7:07pm UTC](https://discuss.elastic.co/t/updating-plugins-with-the-ansible-elasticsearch-playbook/245952/1 "2020-08-21T19:07:26Z")

</div>

How do you use the ansible\elasticsearch playbook to update the es\_plugins? I did an update from 7.8 to 7.9 and it's not updating the plugin.

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [September 16, 2020, 7:06am UTC](https://discuss.elastic.co/t/updating-plugins-with-the-ansible-elasticsearch-playbook/245952/2 "2020-09-16T07:06:28Z")

</div>

Hi @biggtimber,  
Elasticsearch plugins should be reinstalled when Elasticsearch is updated.

`es_plugins_reinstall` should be set to true when Elasticsearch package install task changed:

> <https://github.com/elastic/ansible-elasticsearch/blob/master/tasks/elasticsearch-plugins.yml#L3-L7>

If that's not the case, you can still force `es_plugins_reinstall` to `true`, however, I don't see any reason why it wouldn't be set to `true` automatically when Elasticsearch is upgraded.

Can you provide your Ansible playbook and logs so we can investigate?

---

<div class="post-metadata">

**Author:** ![biggtimber](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@biggtimber](https://discuss.elastic.co/u/biggtimber)\
**Post date:** [October 2, 2020, 7:38pm UTC](https://discuss.elastic.co/t/updating-plugins-with-the-ansible-elasticsearch-playbook/245952/3 "2020-10-02T19:38:52Z")

</div>

hmm. I didnt' change that variable anywhere in my playbook, but I am doing other things in there that might be causing some failures. Let me break them out into seperate ones and mess with it some more. Thanks.

---

<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:** [October 30, 2020, 7:39pm UTC](https://discuss.elastic.co/t/updating-plugins-with-the-ansible-elasticsearch-playbook/245952/4 "2020-10-30T19:39:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
