Files
infrastructure/ansible/README.md
T
2026-10-27 23:40:56 +01:00

35 lines
939 B
Markdown

# ansible
## Ansible Control Node Setup
The root of this repo contains a `flake.nix` that defines a shell with all necessary tools.
To drop into a shell with `ansible-*` commands, run:
```
nix develop
```
## `nanna-setup.yaml`
Small VPS for self-hosted services.
Expects to have a user `paul` who can `sudo`.
Sets up:
- Some basic packages
- Docker and `docker-compose`
- Nix multi-user installation
## `nanna-docker.yaml`
Deploys Docker Compose configurations from `../docker`:
- Sets up the docker network `caddy-network` for services that are reverse proxied by caddy
- Copies configuration into `/etc/pbri/docker`
- Creates folder `/var/lib/pbri/docker` for storing application files
- Creates users with `42xxx` UIDs for running containers
- `docker compose {up,down}`s all enabled/disabled services
## `nanna-sites.yaml`
Checks out static sites into `/home/paul/Sites` which is mounted into `/srv` in the Caddy container.