# ansible upgrade

**URL:** <https://forum.ansible.com/t/ansible-upgrade/38073>\
**Category:** Ansible Project\
**Created:** [June 8, 2023, 1:59pm UTC](https://forum.ansible.com/t/ansible-upgrade/38073 "2023-06-08T13:59:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbs34](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dbs34](https://forum.ansible.com/u/dbs34)\
**Post date:** [June 8, 2023, 1:59pm UTC](https://forum.ansible.com/t/ansible-upgrade/38073/1 "2023-06-08T13:59:41Z")

</div>

Has anyone had issues with their playbooks running after upgrading from 2.13 to 2.14 of ansible? I kept getting run error from my cisco.\* playbooks. My linux playbooks worked fine however. I backed out the upgrade and now my cisco.\* playbooks work again  
Is there a specific upgrade process to follow, such as python3 -m pip install ansible==7.6.0 --user? I ran the typical dnf upgrade -y. Thank you!

The full traceback is:  
File “/root/.ansible/collections/ansible\_collections/ansible/netcommon/plugins/modules/cli\_command.py”, line 170, in main  
response = connection.get(\*\*module.params)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/usr/lib/python3.11/site-packages/ansible/module\_utils/connection.py”, line 200, in **rpc**  
raise ConnectionError(to\_text(msg, errors=‘surrogate\_then\_replace’), code=code)  
fatal: [zzasxxx]: FAILED! =\> changed=false  
invocation:  
module\_args:  
answer: null  
check\_all: false  
command: sh running-config  
newline: true  
prompt: null  
sendonly: false  
msg: Failed to import the required Python library (ansible-pylibssh) on ho-lx-ansibles Python /usr/bin/python3.11. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible\_python\_interpreter

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [June 8, 2023, 5:05pm UTC](https://forum.ansible.com/t/ansible-upgrade/38073/2 "2023-06-08T17:05:57Z")

</div>

Hii

> From what you posted, it is not clear what the working situation

consists of, and what the 'upgrade' version consists of.  
Right now I see a mix of "dnf" which implies an OS provided package,  
but you also have one (or more) collection(s) installed in root's home  
directory.  
Your suggestion of adding "pip install --user" to the mix will likely  
get you further from home.

I haven't read the official installation docs for a while  
([https://docs.ansible.com/ansible/latest/installation\_guide/intro\_installation.html#installing-and-upgrading-ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-upgrading-ansible))  
but those now seem to suggest that the pip installation method is the  
supported way of installing it (which I would agree with).  
So ideally you'd remove the OS package(s) and just use the pip method  
as per above instructions.
