aboutsummaryrefslogblamecommitdiffhomepage
path: root/mini-debian9/install-ansible.sh
blob: 608305008778dd405af1953105d298c35064ce8b (plain) (tree)


























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


export DEBIAN_FRONTEND=noninteractive


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 install -y ansible



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