User Tools

Site Tools


wiki:ansible_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
wiki:ansible_troubleshooting [2023/12/18 15:34] – created antisawiki:ansible_troubleshooting [2024/03/19 15:44] – add local/bin/ansible: No such file or directory antisa
Line 11: Line 11:
 Check the names in group_vars! They need to match the name of the group in the inventory file. Check the names in group_vars! They need to match the name of the group in the inventory file.
  
-====== Tested on ====== +===== AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' ===== 
-  * + 
 +Check versions of ansible and dependencies. This was caused by the upgraded cryptography package (and using the old ansible version - 2.9.27) which was being source from ''/usr/local/lib/python3.10/dist-packages/''. This fixed it: 
 + 
 +  sudo pip uninstall cryptography 
 + 
 +to uninstall from system directory and then run this (notice no sudo) to install it in user's directory ''/home/user/.local/lib/python3.10/site-packages'' 
 + 
 +  pip install cryptography==2.6.1 
 + 
 +Or just use a newer version of ansible which can use newer version of cryptography package. 
 + 
 +===== .local/bin/ansible: No such file or directory ===== 
 +Happened when pip installing 9.3.0 version over 2.9.27. 
 + 
 +Uninstall old version first 
 +  pip uninstall 2.9.27 
 + 
 +Make sure no ansible dirs are leftover: 
 + 
 +  ~$ ls /home/antisa/.local/lib/python3.10/site-packages/ansible* 
 +  ls: cannot access '/home/antisa/.local/lib/python3.10/site-packages/ansible*': No such file or directory 
 + 
 +Now install via pip  
 +  pip install ansible 
  
 ====== See also ====== ====== See also ======
wiki/ansible_troubleshooting.txt · Last modified: 2024/03/22 09:49 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki