Idempotent playbooks
- Essentials
- Swap
- Docker (latest)
- Traefik (traefik:2.9)
- MySQL (mysql:8.0-debian)
- Redis (redis:7.0-bullseye)
- Node exporter (latest)
- Gitlab runner (latest)
- Reboot
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Add ssh config host name to hosts
ansible-playbook setup.yml
ansible localhost -m ping
ansible all -i ./hosts -m ping
ansible-vault encrypt_string --name 'password_name'
Swap: 2G
Traefik: auth
MySQL: auth
Redis: auth
- Limit containers ram & cpu
- Disaster recovery plan
- Docker compose v2
docker -H ssh://ansib exec -it mysql mysql -u <username> -p <database>
docker -H ssh://ansib exec -it redis redis-cli -p 6379 -a 'password' ping