]> git.immae.eu Git - github/fretlink/docker-ansible.git/blob - mini-debian9/install-ansible.sh
Add: Debian 9 ("Stretch") support.
[github/fretlink/docker-ansible.git] / mini-debian9 / install-ansible.sh
1 #!/bin/sh
2 #
3 # Simple wrapper for installing ansible
4 #
5
6
7 export DEBIAN_FRONTEND=noninteractive
8
9
10 echo "===> Adding prerequisites..."
11
12 apt-get update -y
13 cat ___APT_INSTALL_LIST | \
14 while read ITEM; do
15 apt-get install -y $ITEM
16 done
17
18
19
20 echo "===> Installing Ansible..."
21 apt-get install -y ansible
22
23
24
25 echo "===> Adding hosts for convenience..." && \
26 mkdir -p /etc/ansible && \
27 echo 'localhost' > /etc/ansible/hosts