# Updating OS packages when using ansible role

**URL:** <https://discuss.elastic.co/t/updating-os-packages-when-using-ansible-role/273213>\
**Category:** Elasticsearch\
**Created:** [May 17, 2021, 6:28pm UTC](https://discuss.elastic.co/t/updating-os-packages-when-using-ansible-role/273213 "2021-05-17T18:28:48Z")\
**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:** [May 17, 2021, 6:28pm UTC](https://discuss.elastic.co/t/updating-os-packages-when-using-ansible-role/273213/1 "2021-05-17T18:28:49Z")

</div>

How is it recommended to run OS updates on the ES nodes that are maintained by the ansible [role](https://github.com/elastic/ansible-elasticsearch). Should the ES and Java packages be version locked, and will that effect upgrading the nodes later?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 17, 2021, 9:21pm UTC](https://discuss.elastic.co/t/updating-os-packages-when-using-ansible-role/273213/2 "2021-05-17T21:21:41Z")

</div>

I would recommend that you lock the elasticsearch versions, and java if you are not using the built-in java sdk, to avoid any problems.

On my infrastructure all upgrades are only applied after reading the release notes and checking if it won't be a problem upgrading.

---

<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:** [May 18, 2021, 1:53am UTC](https://discuss.elastic.co/t/updating-os-packages-when-using-ansible-role/273213/3 "2021-05-18T01:53:09Z")

</div>

Will the lock interfere with the Ansible role?

---

<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:** [June 15, 2021, 1:53am UTC](https://discuss.elastic.co/t/updating-os-packages-when-using-ansible-role/273213/4 "2021-06-15T01:53:33Z")

</div>

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