]> git.immae.eu Git - github/fretlink/docker-ansible.git/blame - mini-alpine3/install-ansible.sh
debian9: use "slim" version of debian image
[github/fretlink/docker-ansible.git] / mini-alpine3 / install-ansible.sh
CommitLineData
f9662428
WY
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