yum module: state=present vs state=installed

1,079 views
Skip to first unread message

David Neudorfer

unread,
Apr 1, 2015, 11:00:47 AM4/1/15
to ansible...@googlegroups.com
Whats the difference between state=present vs state=installed in the yum module. state=installed seems to be much faster then state=present.

Brian Coca

unread,
Apr 1, 2015, 11:26:42 AM4/1/15
to ansible...@googlegroups.com
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']:



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages