1 KiB
1 KiB
01. Infra Setup
This describes how to prepare each machine before deploying services on them.
01.01 First steps
- Create an ssh key or pick an existing one. We'll refer to it as the
personal_ssh_key. - The guide assumes the laptop (Lapy) has
ansibleinstalled. If not, dosudo apt install -y ansibleandansible --versionto check.
01.02 Prepare the VPS (Vipy)
01.02.01 Source the VPS
- The guide is agnostic to which provider you pick, but has been tested with VMs from https://lnvps.net.
- The expectations are that the VPS ticks the following boxes:
- Runs Debian 12 bookworm.
- Has a public IP4 and starts out with SSH listening on port 22.
- Boots with one of your SSH keys already authorized.
- Move on once your VPS is running.
01.02.02 Prepare Ansible vars
- You have an example
infra/example.inventory.ini. Copy it withcp example.inventory.ini inventory.iniand fill in with the vars for your VPS.
01.02.03 First steps with Ansible
- cd into
infra - Run
ansible-playbook playbook.yml