]> git.immae.eu Git - github/fretlink/docker-ansible.git/blob - mini-debian8/install-ansible.sh
6ddf0cbe3ceb6450af41ec6c017a85c7d66b3c68
[github/fretlink/docker-ansible.git] / mini-debian8 / install-ansible.sh
1 #!/bin/sh
2 #
3 # Simple wrapper for installing ansible
4 #
5
6
7 echo "===> Adding backports..."
8
9 mkdir -p /etc/apt/sources.list.d/
10 echo "deb http://ftp.debian.org/debian jessie-backports main" | tee -a /etc/apt/sources.list.d/jessie-backports.list
11
12
13
14 echo "===> Adding prerequisites..."
15
16 apt-get update -y
17 cat ___APT_INSTALL_LIST | \
18 while read ITEM; do
19 apt-get install -y $ITEM
20 done
21
22
23
24 echo "===> Installing Ansible..."
25 apt-get -t jessie-backports install -y ansible
26
27
28
29 echo "===> Adding hosts for convenience..." && \
30 mkdir -p /etc/ansible && \
31 echo 'localhost' > /etc/ansible/hosts