aboutsummaryrefslogtreecommitdiffhomepage
path: root/mini-debian8/install-ansible.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mini-debian8/install-ansible.sh')
-rwxr-xr-xmini-debian8/install-ansible.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/mini-debian8/install-ansible.sh b/mini-debian8/install-ansible.sh
new file mode 100755
index 0000000..6ddf0cb
--- /dev/null
+++ b/mini-debian8/install-ansible.sh
@@ -0,0 +1,31 @@
1#!/bin/sh
2#
3# Simple wrapper for installing ansible
4#
5
6
7echo "===> Adding backports..."
8
9mkdir -p /etc/apt/sources.list.d/
10echo "deb http://ftp.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list.d/jessie-backports.list
11
12
13
14echo "===> Adding prerequisites..."
15
16apt-get update -y
17cat ___APT_INSTALL_LIST | \
18 while read ITEM; do
19 apt-get install -y $ITEM
20 done
21
22
23
24echo "===> Installing Ansible..."
25apt-get -t jessie-backports install -y ansible
26
27
28
29echo "===> Adding hosts for convenience..." && \
30mkdir -p /etc/ansible && \
31echo 'localhost' > /etc/ansible/hosts