aboutsummaryrefslogblamecommitdiffhomepage
path: root/mini-debian8/install-ansible.sh
blob: 6ddf0cbe3ceb6450af41ec6c017a85c7d66b3c68 (plain) (tree)






























                                                                                                                    
#!/bin/sh
#
# Simple wrapper for installing ansible
#


echo "===> Adding backports..."

mkdir -p /etc/apt/sources.list.d/
echo "deb http://ftp.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list.d/jessie-backports.list



echo "===> Adding prerequisites..."

apt-get update -y
cat ___APT_INSTALL_LIST  | \
    while read ITEM; do
        apt-get install -y $ITEM
    done



echo "===> Installing Ansible..."
apt-get -t jessie-backports install -y ansible



echo "===> Adding hosts for convenience..."  && \
mkdir -p /etc/ansible                        && \
echo 'localhost' > /etc/ansible/hosts