f966242
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/bin/sh # # Simple wrapper for installing ansible # echo "===> Adding prerequisites..." cat ___APK_INSTALL_LIST | \ while read ITEM; do apk --update add $ITEM done cat ___PIP_INSTALL_LIST | \ while read ITEM; do pip install --upgrade $ITEM done echo "===> Installing Ansible..." pip install ansible echo "===> Adding hosts for convenience..." && \ mkdir -p /etc/ansible && \ echo 'localhost' > /etc/ansible/hosts