# Ansible Yum Update

**URL:** <https://forum.ansible.com/t/ansible-yum-update/34201>\
**Category:** Ansible Developer\
**Created:** [November 17, 2020, 5:24am UTC](https://forum.ansible.com/t/ansible-yum-update/34201 "2020-11-17T05:24:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HtetAung](https://avatars.discourse-cdn.com/v4/letter/h/dc4da7/32.png) [@HtetAung](https://forum.ansible.com/u/HtetAung)\
**Post date:** [November 17, 2020, 5:24am UTC](https://forum.ansible.com/t/ansible-yum-update/34201/1 "2020-11-17T05:24:04Z")

</div>

Hi Guys,

I have been using ansible for 3 months now and I updated my servers’ packages using yum module.  
My goal is to update all the packages in those servers to latest. The command line will be “yum -y update”  
As stated in ansible document for yum: [https://docs.ansible.com/ansible/latest/collections/ansible/builtin/yum\_module.html#parameter-name](https://docs.ansible.com/ansible/latest/collections/ansible/builtin/yum_module.html#parameter-name)

My playbook looks exactly like following:  
 ![]()

I found that it updates my OS too. As a result, some of my services which have version dependencies stopped working.  
Where did I go wrong? Please kindly help explain.
