]>
git.immae.eu Git - github/fretlink/docker-ansible.git/blob - mini-debian8/install-ansible.sh
3 # Simple wrapper for installing ansible
7 export DEBIAN_FRONTEND
=noninteractive
10 echo "===> Adding backports..."
12 mkdir -p /etc
/apt
/sources.list.d
/
13 echo "deb http://ftp.debian.org/debian jessie-backports main" | tee -a /etc
/apt
/sources.list.d
/jessie
-backports.list
17 echo "===> Adding prerequisites..."
20 cat ___APT_INSTALL_LIST
| \
22 apt
-get install -y $ITEM
27 echo "===> Installing Ansible..."
28 apt
-get -t jessie
-backports install -y ansible
32 echo "===> Adding hosts for convenience..." && \
33 mkdir -p /etc
/ansible
&& \
34 echo 'localhost' > /etc
/ansible
/hosts