My personal infrastructure is composed of:
- ๐พ backup server(s):
- creates and stores
postgresql
backups (regularpg_dump
) - (soon) syncs a remote server with rsync
- creates and stores
- ๐ static server(s):
- serves my web static content (with http3 and SSL enabled using Caddy)
- Linux servers with
python
andapt
- your SSH public key in servers authorized keys (
./ssh/authorized-hosts
)
- Install dependencies
ansible-galaxy collection install community.general
ansible-galaxy install -r requirements.yml
-
Configure
inventory.yml
with backup and static servers -
Create
vars.yml
pgdump:
user: changeme
password: changeme
host: changeme
database: changeme
ansible-playbook -i inventory.yml site.yml --extra-vars "@vars.yml"