# update of ansible seems to be inconsistent

**URL:** <https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 7, 2016, 11:52am UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191 "2016-12-07T11:52:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_S](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sebastian\_S](https://forum.ansible.com/u/Sebastian_S)\
**Post date:** [December 7, 2016, 11:52am UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/1 "2016-12-07T11:52:39Z")

</div>

Hello folks,

we have a Ubuntu 14.04 box running Ansible and Ansible-Tower on it. The packages are updates regularly. The Ansible mirror is also listed in the sources.list, so it gets updates too. But there seem to be something wrong. I’m thinking this because

1. When I do a ansible --version it shows 2.0.0.2

> ansible@DE9899S76 ~ % ansible --version  
> ansible 2.0.0.2  
> config file = /etc/ansible/ansible.cfg  
> configured module search path = Default w/o overrides

1. apt-get -u -V upgrade says there are no upgrade pending. The ansible package is not locked or pinned in apt.

2. apt-cache --showpkg ansible says it’ 2.2.0.0

3. Playbooks with the synchronize module have a problem that has been solved in version 2.1, as far as I’ve read. When you use this module with become: yes, sudo is not used on the remote machine but on the ansible server.

> > [http://cheat.readthedocs.io/en/latest/ansible/synchronize.html](http://cheat.readthedocs.io/en/latest/ansible/synchronize.html)

So it looks to me like some parts have been updated to version 2.2.0.0 and others not. Can anybody explain this to me or has any tips for me to get this riddle solved? Any help would be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![Andreas\_Olsson](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andreas\_Olsson](https://forum.ansible.com/u/Andreas_Olsson)\
**Post date:** [December 7, 2016, 2:51pm UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/2 "2016-12-07T14:51:09Z")

</div>

ons 2016-12-07 klockan 03:52 -0800 skrev Sebastian S.:

> ansible@DE9899S76 ~ % ansible --version  
> ansible 2.0.0.2  
> ....  
> 3. apt-cache --showpkg ansible says it' 2.2.0.0

What does `which ansible` say?

That is, any chance that you have an additional version of Ansible  
installed, in addition to what is provided by the package manager?

// Andreas

---

<div class="post-metadata">

**Author:** ![Sebastian\_S](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sebastian\_S](https://forum.ansible.com/u/Sebastian_S)\
**Post date:** [December 8, 2016, 7:40am UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/3 "2016-12-08T07:40:30Z")

</div>

Hi,

which ansible says: /usr/local/bin/ansible

I did a apt-get remove for ansible-tower and ansible and reinstalled both with the bundled installer, no difference.  
Didn’t wanted to make a apt-get purge, because I do not want to configure everything again, but meanwhile i think about a complete new installation…

---

<div class="post-metadata">

**Author:** ![Andreas\_Olsson](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andreas\_Olsson](https://forum.ansible.com/u/Andreas_Olsson)\
**Post date:** [December 8, 2016, 8:02am UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/4 "2016-12-08T08:02:21Z")

</div>

ons 2016-12-07 klockan 23:40 -0800 skrev Sebastian S.:

> which ansible says: /usr/local/bin/ansible

That looks more like somewhere where Pip would install Ansible, or  
where someone would install Ansible manually. Any chance that you also  
have a /usr/bin/ansible, which better match the apt version?

// Andreas

---

<div class="post-metadata">

**Author:** ![Sebastian\_S](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sebastian\_S](https://forum.ansible.com/u/Sebastian_S)\
**Post date:** [December 8, 2016, 12:44pm UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/5 "2016-12-08T12:44:34Z")

</div>

In fact there is one. But when I run this one something goes wrong:

ansible@DE9899S76 /etc/ansible/roles % /usr/bin/ansible  
Traceback (most recent call last):  
File “/usr/bin/ansible”, line 46, in   
from ansible.module\_utils.\_text import to\_text  
ImportError: No module named \_text

---

<div class="post-metadata">

**Author:** ![Sebastian\_S](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sebastian\_S](https://forum.ansible.com/u/Sebastian_S)\
**Post date:** [December 12, 2016, 12:53pm UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/6 "2016-12-12T12:53:28Z")

</div>

You were right. There was a ansible pip installation. I uninstalled it and ansible --version is now correct. Thank you!! ^^

---

<div class="post-metadata">

**Author:** ![Gildas\_Cotomale](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@Gildas\_Cotomale](https://forum.ansible.com/u/Gildas_Cotomale)\
**Post date:** [December 12, 2016, 1:16pm UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/7 "2016-12-12T13:16:50Z")

</div>

I don’t know how much different Debian and Ubuntu can be there.  
My Debian installation, done with Pip gives the same answer.

---

<div class="post-metadata">

**Author:** ![Mike\_Gracy](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@Mike\_Gracy](https://forum.ansible.com/u/Mike_Gracy)\
**Post date:** [December 13, 2016, 3:17pm UTC](https://forum.ansible.com/t/update-of-ansible-seems-to-be-inconsistent/23191/8 "2016-12-13T15:17:57Z")

</div>

When you are installing from pip, you are platform independent for the most part (except assmblr/C/etc… compiles).  
When you install via a package manager, it’s a package tweaked specifically for you platform (install location mostly).
