Overview of the repo role
mainrepo role builds and serves a local software repository to enable offline installations, faster deployments, and consistent package versioning across nodes. It handles downloading packages from upstream, cleaning up unwanted packages, creating APT/YUM metadata, and serving the repository via Nginx. This is particularly useful for air-gapped or secure environments.