blob: b3c0deeb2da12c79fb35903474a765069faf89ad (
plain) (
blame)
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
27
28
29
30
31
32
33
34
|
#!/bin/sh
#
# Simple wrapper for installing ansible
#
export DEBIAN_FRONTEND=noninteractive
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
|