mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
./install-support now prompts for openvpn_handle
This commit is contained in:
parent
2dc1d40b20
commit
9912711ec1
1 changed files with 11 additions and 2 deletions
|
@ -12,7 +12,16 @@ if [ ! -f $PLAYBOOK ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
sed -i -e "s/openvpn_install: False/openvpn_install: True/" /etc/iiab/local_vars.yml
|
||||
sed -i -e "s/openvpn_enabled: False/openvpn_enabled: True/" /etc/iiab/local_vars.yml
|
||||
echo -en "\nWhat OpenVPN machine name do you want? "
|
||||
read ans < /dev/tty
|
||||
if [ "$ans" != "" ]; then
|
||||
sed -i -e "s/^openvpn_handle:.*/openvpn_handle: $ans/" /etc/iiab/local_vars.yml
|
||||
echo -e "\nYour machine's openvpn_handle will now be set... \n"
|
||||
else
|
||||
echo -e "\nWARNING: your machine's openvpn_handle will remain unchanged...\n"
|
||||
fi
|
||||
|
||||
sed -i -e "s/^openvpn_install:.*/openvpn_install: True/" /etc/iiab/local_vars.yml
|
||||
sed -i -e "s/^openvpn_enabled:.*/openvpn_enabled: True/" /etc/iiab/local_vars.yml
|
||||
|
||||
ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
|
||||
|
|
Loading…
Reference in a new issue