Created
March 19, 2019 06:04
-
-
Save kuttor/5540b0b7ee18ea62283068b03813693e to your computer and use it in GitHub Desktop.
Get Ansible working on an Android phone using a Terminal Emulator like Termux
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
#!/data/data/com.termux/files/usr/bin/bash | |
yes | pkg upgrade && \ | |
yes | pkg install \ | |
python \ | |
python-dev \ | |
libffi \ | |
libffi-dev \ | |
openssl \ | |
openssl-dev \ | |
libsodium \ | |
clang \ | |
cmake | |
# Install the latest Python package manager. | |
# The version of pip that comes with Python may be outdated. | |
pip install --upgrade pip | |
pip list --outdated --format=freeze | \ | |
grep -v '^\-e' | \ | |
cut -d = -f 1 | \ | |
xargs -n1 pip install -U && \ | |
# The pynacl dependency originally did not install because | |
# it gave problems building dependencies' | |
pip install --upgrade pynacl | |
pip install --upgrade ansible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@phanirithvij thank you for your suggestions.
I also tried my production playbook, which uses ssh connections to my proxmox instances. These connections are absolutely instable, like 1 out of 5 work. Which make ansible unusable for me :-(
I will try your fix someday in the next few weeks and post if it helped me.