|  | ||
|---|---|---|
| inventory | ||
| plays | ||
| roles | ||
| .gitignore | ||
| README.md | ||
| Vagrantfile | ||
| ansible.cfg | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	Homelab
Ansible configuration repository for my homelab.
Servers
- pi: Raspberry Pi's- ruby
- sapphire
 
- hetzner: Hetzner VPS servers- pearl
 
Initial setup for new Raspberry Pi
- Flash Debian Raspberry Pi on the SD card.
- Configure /boot/firmware/sysconf.txt- Set hostnameto the desired name
- Set root_authorized_keyto the contents of the current computer's public SSH key
 
- Set 
- Put SD card in Pi and boot
- Connect Pi to wired internet
- Determine IP address given to the new Pi
- Add this IP address to the initial-hosts.inifile, along with thestatic_iphost var set to the desired static IP address
- Comment out ansible_ssh_useringroup_vars/all/vars.yml, as this overwrites the one set in the hosts file
- Run ansible-playbook -i inventory/initial_hosts.ini first_run.yml. This command will hang at therestart networkingstep; at this point you can Ctrl-C.