{"id":29702506,"url":"https://github.com/devgateway/ansible-role-package-manager-mirror","last_synced_at":"2026-04-18T01:02:47.965Z","repository":{"id":78413131,"uuid":"115757875","full_name":"devgateway/ansible-role-package-manager-mirror","owner":"devgateway","description":"Configure a mirror of standard repositories for APT, YUM, and DNF","archived":false,"fork":false,"pushed_at":"2020-03-23T19:16:18.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-23T13:00:04.647Z","etag":null,"topics":["ansible","ansible-role","apt","dnf","package-manager","repo","repository","yum"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devgateway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-12-29T22:19:53.000Z","updated_at":"2020-03-23T19:16:20.000Z","dependencies_parsed_at":"2023-04-29T10:30:34.157Z","dependency_job_id":null,"html_url":"https://github.com/devgateway/ansible-role-package-manager-mirror","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devgateway/ansible-role-package-manager-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-package-manager-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-package-manager-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-package-manager-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-package-manager-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgateway","download_url":"https://codeload.github.com/devgateway/ansible-role-package-manager-mirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgateway%2Fansible-role-package-manager-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","apt","dnf","package-manager","repo","repository","yum"],"created_at":"2025-07-23T12:39:27.909Z","updated_at":"2026-04-18T01:02:47.951Z","avatar_url":"https://github.com/devgateway.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package Manager Mirror\n\nConfigure a mirror of standard repositories for APT, YUM, and DNF. Useful if you have a caching proxy and want to ensure cache hits.\n\nRole Variables\n--------------\n\n### `pkgmgr_proxy`\n\nIf defined, the role will configure the package manager to use this URL as a proxy.\n\n### `pkgmgr_mirror`\n\nA dictionary of repository settings with distribution names as keys. Values are different for different distributions.\n\n#### Debian-like\n\nValues are dictionaries in which either *default* key or the specific release name key must be present. The release name is taken from Ansible fact `ansible_lsb.codename`, and defaults to `ansible_distribution_release` if it's not set (varies by release).\n\nValues are dictionaries where *url* member is the base URL (one level **above** subdirectories like *dists* and *pool*, see example below), and *components* member is a list of distribution components, such as *main*, *contrib*, or *non-free*.\n\n#### RH-like\n\nValues are base URLs (see example below). They should be one level **above** the following subdirectories:\n\n* major release numbers in CentOS and Scientific\n* *releases* in Fedora\n\nExample Playbook\n----------------\n\n    ---\n    - hosts: all\n      roles:\n        - role: package-manager-mirror\n          pkgmgr_proxy: http://proxy.example.net:3128\n          pkgmgr_mirror:\n            Debian: \n              default:\n                url: http://ftp.us.debian.org/debian/\n                components:\n                  - main\n                  - contrib\n              sid:\n                components:\n                  - main\n                  - non-free\n                  - contrib\n            CentOS:\n              default: http://mirror.centos.org/centos\n            Scientific:\n              default: http://ftp.scientificlinux.org/linux/scientific\n            Fedora:\n              default: http://download.fedoraproject.org/pub/fedora/linux\n              v24: http://archives.fedoraproject.org/pub/archive/fedora/linux\n\nLicense\n-------\n\nGPLv3+\n\nAuthor Information\n------------------\n\nCopyright 2018, Development Gateway\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgateway%2Fansible-role-package-manager-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgateway%2Fansible-role-package-manager-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgateway%2Fansible-role-package-manager-mirror/lists"}