1.3 KiB
1.3 KiB
Lessons Learned
- The
networkrole in this repository is a powerful tool that sets up a complete network stack, including Nginx Proxy Manager for reverse proxying andwireguard-easyfor a WireGuard web UI. - The
giteaandpostgresroles use Docker Compose to deploy their respective services. - Properly managing variables, especially secrets like passwords and API keys, is crucial. Using
group_varsand a.gitignoredsecretsdirectory is a good practice. - It's important to have a clear plan and get user feedback before making any changes. The "planning mode" and "acting mode" paradigm is a good way to structure the workflow.
- The
dockerrole proved problematic on Ubuntu 24.04 (noble) due to repository issues. - Podman is a viable and simpler alternative to Docker for container management.
- Ansible modules designed for Docker (e.g.,
community.docker.docker_compose_v2,docker_container) are not directly compatible with Podman. podman-composecan be used withansible.builtin.shellfor managingdocker-compose.ymlfiles with Podman.containers.podman.podman_containeris the direct replacement fordocker_containerfor managing individual Podman containers.- Ansible Vault is crucial for securely managing sensitive data like passwords in version control.