Jef Roosens 56faa4323b | ||
---|---|---|
group_vars | ||
roles | ||
.gitignore | ||
README.md | ||
Vagrantfile | ||
ansible.cfg | ||
first_run.yml | ||
hosts.ini | ||
hosts.template.ini | ||
initial-hosts.ini | ||
main.yml | ||
nas.yml | ||
ruby.yml | ||
web.yml |
README.md
Raspberry Pi NAS
Ansible configuration repository for my Raspberry Pi's.
Initial setup for new systems
- Flash Debian Raspberry Pi on the SD card.
- Configure
/boot/firmware/sysconf.txt
- Set
hostname
to the desired name - Set
root_authorized_key
to 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.ini
file, along with thestatic_ip
host var set to the desired static IP address - Comment out
ansible_ssh_user
ingroup_vars/all/vars.yml
, as this overwrites the one set in the hosts file - Run
ansible-playbook -i initial-hosts.ini first_run.yml
. This command will hang at therestart networking
step; at this point you can Ctrl-C.