mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			496 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			496 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| PLAYBOOK="iiab-base.yml"
 | |
| INVENTORY="ansible_hosts"
 | |
| 
 | |
| if [ ! -f $PLAYBOOK ]
 | |
| then
 | |
|  echo "IIAB Playbook not found."
 | |
|  echo "Please run this command from the top level of the git repo."
 | |
|  echo "Exiting."
 | |
|  exit 1
 | |
| fi
 | |
| 
 | |
| sed -i -e "s/openvpn_install: False/openvpn_install: True/" vars/local_vars.yml
 | |
| sed -i -e "s/openvpn_enabled: False/openvpn_enabled: True/" vars/local_vars.yml
 | |
| 
 | |
| export ANSIBLE_LOG_PATH="$XSCE_DIR/iiab-install.log"
 | |
| ansible-playbook -i $INVENTORY $PLAYBOOK --connection=local
 |