]> git.immae.eu Git - github/fretlink/docker-ansible.git/blob - mini-alpine3/install-ansible.sh
98dede034707a2f69e1d5e525117e17eef38a3b5
[github/fretlink/docker-ansible.git] / mini-alpine3 / install-ansible.sh
1 #!/bin/sh
2 #
3 # Simple wrapper for installing ansible
4 #
5
6
7 echo "===> Adding prerequisites..."
8
9 cat ___APK_INSTALL_LIST | \
10 while read ITEM; do
11 apk --update add $ITEM
12 done
13
14 cat ___PIP_INSTALL_LIST | \
15 while read ITEM; do
16 pip install --upgrade $ITEM
17 done
18
19
20 echo "===> Installing Ansible..."
21 pip install ansible
22
23
24 echo "===> Adding hosts for convenience..." && \
25 mkdir -p /etc/ansible && \
26 echo 'localhost' > /etc/ansible/hosts