# Add state to easy\_install

**URL:** <https://forum.ansible.com/t/add-state-to-easy-install/18272>\
**Category:** Ansible Developer\
**Created:** [May 20, 2015, 5:48pm UTC](https://forum.ansible.com/t/add-state-to-easy-install/18272 "2015-05-20T17:48:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Schlueter](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@Brandon\_Schlueter](https://forum.ansible.com/u/Brandon_Schlueter)\
**Post date:** [May 20, 2015, 5:48pm UTC](https://forum.ansible.com/t/add-state-to-easy-install/18272/1 "2015-05-20T17:48:03Z")

</div>

I just opened a PR to add state to the easy\_install resource at [https://github.com/ansible/ansible-modules-core/pull/1383](https://github.com/ansible/ansible-modules-core/pull/1383) for this.

State may be either present or latest. If it is latest, the `--upgrade` option is passed to the easy\_install executable when it is run.

I know easy\_install is outdated and all, but if it’s going to be available, shouldn’t it be fully functional? If y’all agree with that, I can see about adding other options as well and making ‘state’ == ‘absent’ work.

---

<div class="post-metadata">

**Author:** ![Toshio\_Kuratomi](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@Toshio\_Kuratomi](https://forum.ansible.com/u/Toshio_Kuratomi)\
**Post date:** [May 21, 2015, 4:55pm UTC](https://forum.ansible.com/t/add-state-to-easy-install/18272/2 "2015-05-21T16:55:02Z")

</div>

Personally I would love to move easy\_install to extras and only have  
pip in core. But I don't think we've gotten to the point where we can  
set expectations properly when doing this yet. I like  
state=present|latest and will try to merge the PR shortly. Not sure  
about state=absent.... One of the drawbacks of easy\_install vs pip is  
that easy\_install doesn't make any effort to understand how to  
uninstall packages. So I'm not sure if we should attempt to shoe-horn  
a lot of extra code into the easy\_install module to make that work or  
just tell people to use the pip module to uninstall.

-Toshio

---

<div class="post-metadata">

**Author:** ![Brandon\_Schlueter](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@Brandon\_Schlueter](https://forum.ansible.com/u/Brandon_Schlueter)\
**Post date:** [May 21, 2015, 5:45pm UTC](https://forum.ansible.com/t/add-state-to-easy-install/18272/3 "2015-05-21T17:45:26Z")

</div>

The only reason I’m even touching easy\_install is that pip does not install correctly via apt from the ‘python-pip’ package in Ubuntu 14.04, so I’m installing it with easy\_install and then never touching easy\_install again.
