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