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