From deeab1a101da6710574174dbe47199f9e8900b93 Mon Sep 17 00:00:00 2001 From: William Yeh Date: Thu, 14 Sep 2017 15:57:43 +0800 Subject: Add: Debian 9 ("Stretch") support. --- mini-debian9/install-ansible.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 mini-debian9/install-ansible.sh (limited to 'mini-debian9/install-ansible.sh') diff --git a/mini-debian9/install-ansible.sh b/mini-debian9/install-ansible.sh new file mode 100755 index 0000000..6083050 --- /dev/null +++ b/mini-debian9/install-ansible.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Simple wrapper for installing ansible +# + + +export DEBIAN_FRONTEND=noninteractive + + +echo "===> Adding prerequisites..." + +apt-get update -y +cat ___APT_INSTALL_LIST | \ + while read ITEM; do + apt-get install -y $ITEM + done + + + +echo "===> Installing Ansible..." +apt-get install -y ansible + + + +echo "===> Adding hosts for convenience..." && \ +mkdir -p /etc/ansible && \ +echo 'localhost' > /etc/ansible/hosts -- cgit v1.2.3