mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2804 from holta/iiab-support_install_only_when_nec
Modernize iiab-support so that it only installs OpenVPN when truly nec
This commit is contained in:
commit
7ded9ba89f
1 changed files with 1 additions and 3 deletions
|
@ -46,7 +46,7 @@ else
|
|||
echo -e "\n\e[1mWARNING: openvpn_handle remains unchanged in both above files.\e[0m\n"
|
||||
fi
|
||||
|
||||
if grep -q '^openvpn_install: True' /etc/iiab/local_vars.yml; then
|
||||
if grep -q '^openvpn_installed: True\b' /etc/iiab/iiab_state.yml; then
|
||||
echo -e "Your IIAB installation appears normal, with OpenVPN already installed...\n"
|
||||
else
|
||||
echo -e "Plz wait a few minutes as sshd, iiab-admin & OpenVPN are confirmed/installed...\n"
|
||||
|
@ -58,8 +58,6 @@ else
|
|||
|
||||
if [ -d /opt/iiab/iiab ]; then
|
||||
cd /opt/iiab/iiab
|
||||
#CWD=`pwd`
|
||||
#export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
|
||||
export ANSIBLE_LOG_PATH="/opt/iiab/iiab/iiab-install.log"
|
||||
ansible -m setup -i $INVENTORY localhost --connection=local | grep python
|
||||
ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
|
||||
|
|
Loading…
Add table
Reference in a new issue