Every Ansible command responds with "abort"

Viewed 452

When I run any Ansible command the response is always abort. For example:

ansible --version   

# Or:
ansible-playbook -i production site.yml --diff --check

Response:

[1]    78576 abort      ansible --version

Any idea why or how to fix? I updated Ansible but error remained the same. Things used to work in the past but it's been a few months since I've used Ansible.

2 Answers

I found the solution to my problem here. It's a problem with OpenSSL: https://nbari.com/post/python-quit-unexpectedly-macos/

The steps to fix:

brew reinstall openssl

cd /usr/local/lib
sudo ln -s /usr/local/opt/openssl/lib/libssl.dylib libssl.dylib
sudo ln -s /usr/local/opt/openssl/lib/libcrypto.dylib libcrypto.dylib

This looks like something specific on your system which has been misconfigured.

  • re-trace your steps which could’ve led to this error
  • Try to reinstall Python / Ansible
  • use ‘ps aux | grep ansible’ to see if there are other Ansible processes running
  • virtualenv?
  • worst case ; reinstall system
Related