Some rewriting stuff

master
Jef Roosens 2024-01-11 09:17:23 +01:00
parent 9a66ea8f6e
commit be2508e662
Signed by: Jef Roosens
GPG Key ID: 02D4C0997E74717B
3 changed files with 14 additions and 6 deletions

@ -1,4 +1,6 @@
# Home
Welcome to the wiki for my homelab! As this homelab is rather important to me, Welcome to the wiki for my homelab! As this homelab is rather important to me,
I'm trying to keep it very well organized an documented. While this wiki is I'm trying to keep it very well organized and documented. While this wiki is
mostly meant to be read by me in the future, there's definitely some mostly meant to be read by me in the future, there's definitely some
interesting information in here for anyone with a similar setup. interesting information in here for anyone with a similar setup.

@ -1 +1 @@
- [Integrating a new Pi](integrate-new-pi) - [Integrate a new system](integrate-new-system)

@ -1,4 +1,6 @@
# Integrating a new Pi # Integrate a new system
## Raspberry Pi
When integrating a new Pi, a few steps need to be performed before it can be When integrating a new Pi, a few steps need to be performed before it can be
integrated with the rest of the Ansible config. integrated with the rest of the Ansible config.
@ -25,6 +27,10 @@ Now you can run the initial configuration of the Pi with the following command:
ansible-playbook -i [original ip], -e ansible_ssh_user=root -e static_ip=[static ip] first_run.yml ansible-playbook -i [original ip], -e ansible_ssh_user=root -e static_ip=[static ip] first_run.yml
``` ```
The [first_run.yml](src/branch/main/first_run.yml) playbook installs Python3 The `first_run.yml` playbook installs Python 3 and sets up the base user and
and sets up the base user and SSH configuration so all other Ansible roles can SSH configuration so all other Ansible roles can work properly. Note that this
work properly. playbook will hang forever on the final step, "restart networking". This is due
to the Pi changing IPs without Ansible knowing. Once you reach this step, you
can simply Ctrl-C the playbook execution.
Now your Pi should be ready to be used with the rest of the configuration.