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