diff options
Diffstat (limited to 'mini-debian8/install-ansible.sh')
-rwxr-xr-x | mini-debian8/install-ansible.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mini-debian8/install-ansible.sh b/mini-debian8/install-ansible.sh new file mode 100755 index 0000000..6ddf0cb --- /dev/null +++ b/mini-debian8/install-ansible.sh | |||
@@ -0,0 +1,31 @@ | |||
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 | ||