-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
executable file
·47 lines (43 loc) · 1.46 KB
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
HEIGHT=15
WIDTH=60
CHOICE_HEIGHT=5
BACKTITLE="Server Bind 9 con DDNS per Ninux NNXX"
TITLE="Installazione server DNS per Ninux NNXX"
MENU="Scegli una delle seguenti opzioni:"
OPTIONS=(1 "All Server: Common"
2 "Install and Configure VPN Basilicata"
3 "Install and Configure OLSRd2"
4 "Install and Configure Master and Slave Server: Bind"
5 "Install and Configure Only Bind Caching")
CHOICE=$(dialog --clear \
--backtitle "$BACKTITLE" \
--title "$TITLE" \
--menu "$MENU" \
$HEIGHT $WIDTH $CHOICE_HEIGHT \
"${OPTIONS[@]}" \
2>&1 >/dev/tty)
clear
case $CHOICE in
1)
echo "You chose All Server: Common"
ansible-playbook -i hosts common.yml -l common
;;
2)
echo "You chose: Install and Configure VPN Basilicata"
ansible-playbook -i hosts vpn.yml -l vpn
;;
3)
echo "You chose: Install and Configure OLSRd2"
ansible-playbook -i hosts olsrd2.yml -l olsrd
;;
4)
echo "You chose Install and Configure Master and Slave Server: Bind"
ansible-playbook -i hosts dns_server.yml -l dns_server
;;
5)
echo "You chose Only Install and Configure Bind Caching"
sleep 3
ansible-playbook -i hosts dns_forwarder.yml -l dns_forwarder
;;
esac