# yum module: state=present vs state=installed

**URL:** <https://forum.ansible.com/t/yum-module-state-present-vs-state-installed/17885>\
**Category:** Ansible Project\
**Created:** [April 1, 2015, 3:00pm UTC](https://forum.ansible.com/t/yum-module-state-present-vs-state-installed/17885 "2015-04-01T15:00:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.neudorfer](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@david.neudorfer](https://forum.ansible.com/u/david.neudorfer)\
**Post date:** [April 1, 2015, 3:00pm UTC](https://forum.ansible.com/t/yum-module-state-present-vs-state-installed/17885/1 "2015-04-01T15:00:47Z")

</div>

Whats the difference between state=present vs state=installed in the yum module. state=installed seems to be much faster then state=present.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [April 1, 2015, 3:26pm UTC](https://forum.ansible.com/t/yum-module-state-present-vs-state-installed/17885/2 "2015-04-01T15:26:37Z")

</div>

They are the same, an alias to each other, the prefered term in  
ansible is 'present'.

not sure why you see a speed difference when they are used like this in code:

if state in ['installed', 'present']:
