12 lines
		
	
	
		
			358 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			358 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # You first need to do a few things on opnsense web interface:
 | |
| # - enable ssh
 | |
| # - create a nationtech user (member of admin) with an API key (system / access /users)
 | |
| # - get an API key
 | |
| 
 | |
| ansible-galaxy collection install ansible.posix
 | |
| 
 | |
| ansible-playbook tftp.yml -i 192.168.1.1, -e ansible_user=root -e ansible_password=opnsense --connection=ssh
 | |
| 
 |