Last active
March 30, 2021 17:29
-
-
Save vladget/f967d039f47a4e80290d2c19841a3918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For fresh installed Mac OS X or after migration to new machine. TODO: Make own ansible role for install all stuff. | |
##### Ansible related | |
###### Python 3.x and libcrypto issue | |
*Problem:* | |
After update to Mac OS X Catalina or frash install there is issue with libcrypto | |
``` | |
Python Abort trap: 6 | |
crashed with invalid load of libcrypto.dylib | |
``` | |
*Solution:* | |
```brew update && brew upgrade && brew install openssl | |
cd /usr/local/Cellar/openssl/1.0.2t/lib | |
sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/local/lib/ | |
cd /usr/local/lib | |
mv libssl.dylib libssl_bak.dylib | |
mv libcrypto.dylib libcrypto_bak.dylib | |
sudo ln -s libssl.1.0.0.dylib libssl.dylib | |
sudo ln -s libcrypto.1.0.0.dylib libcrypto.dylib``` | |
###### Ansible askpass dependency | |
*Problem:* | |
``` | |
fatal: [remote.host.net]: FAILED! => {"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"} | |
``` | |
*Solution:* | |
``` | |
brew install https://raw.githubusercontent.com/vladget/homebrew-sshpass/main/Library/Formula/sshpass.rb | |
OR | |
wget https://deac-ams.dl.sourceforge.net/project/sshpass/sshpass/1.08/sshpass-1.08.tar.gz | |
./configure | |
make | |
make install | |
``` | |
###### Ansible tar issue | |
*Problem:* | |
```fatal: [remotehost -> localhost]: FAILED! => {"changed": false, "msg": "Failed to find handler for \"/Users/vladget/.ansible/tmp/ansible-tmp-1591961210.774629-38327-165387942297523/source\". Make sure the required command to extract the file is installed. Command \"/usr/bin/tar\" detected as tar type bsd. GNU tar required. Command \"/usr/bin/unzip\" could not handle archive."}``` | |
Just insall GNU tar: | |
```brew install gnu-tar``` | |
###### Ansible for issue | |
*Problem:* | |
objc[6763]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. | |
objc[6763]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. | |
Fix: | |
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment