diff options
author | William Yeh <william.pjyeh@gmail.com> | 2017-09-14 15:57:43 +0800 |
---|---|---|
committer | William Yeh <william.pjyeh@gmail.com> | 2017-09-14 17:56:59 +0800 |
commit | deeab1a101da6710574174dbe47199f9e8900b93 (patch) | |
tree | 95605a54ab972f9b821267be534103803fb84f2a /mini-debian9/install-ansible.sh | |
parent | 57d366d79328ee5d127d05644b108bd4f7915cdc (diff) | |
download | docker-ansible-deeab1a101da6710574174dbe47199f9e8900b93.tar.gz docker-ansible-deeab1a101da6710574174dbe47199f9e8900b93.tar.zst docker-ansible-deeab1a101da6710574174dbe47199f9e8900b93.zip |
Add: Debian 9 ("Stretch") support.
Diffstat (limited to 'mini-debian9/install-ansible.sh')
-rwxr-xr-x | mini-debian9/install-ansible.sh | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ | |||
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 | ||