mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			528 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			528 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
PLAYBOOK="iiab-support.yml"
 | 
						|
INVENTORY="ansible_hosts"
 | 
						|
CWD=`pwd`
 | 
						|
 | 
						|
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
 | 
						|
 | 
						|
if [ ! -f $PLAYBOOK ]; then
 | 
						|
    echo -e "\nEXITING: $PLAYBOOK not found.\n"
 | 
						|
    echo -e "Please run this command from /opt/iiab/iiab (top of git repo).\n"
 | 
						|
    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
 | 
						|
 | 
						|
ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
 |