{"id":15673776,"url":"https://github.com/alancoding/collection-requirements-cases","last_synced_at":"2026-02-27T02:30:58.413Z","repository":{"id":144899441,"uuid":"203807439","full_name":"AlanCoding/collection-requirements-cases","owner":"AlanCoding","description":"use cases for collection requirements","archived":false,"fork":false,"pushed_at":"2019-08-26T15:23:49.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T11:43:44.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlanCoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-08-22T14:04:12.000Z","updated_at":"2019-08-26T15:23:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc180346-19d1-45db-b227-64b5e30838fe","html_url":"https://github.com/AlanCoding/collection-requirements-cases","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"68863913a17a6f871e8b22f07072af283f96b893"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlanCoding/collection-requirements-cases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2Fcollection-requirements-cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2Fcollection-requirements-cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2Fcollection-requirements-cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2Fcollection-requirements-cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlanCoding","download_url":"https://codeload.github.com/AlanCoding/collection-requirements-cases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCoding%2Fcollection-requirements-cases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T15:42:01.008Z","updated_at":"2026-02-27T02:30:58.399Z","avatar_url":"https://github.com/AlanCoding.png","language":null,"readme":"# collection-requirements-cases\n\nuse cases for collection requirements\n\nHow this works for the reference case:\n\n```\nansible-galaxy collection install -r reference/collections/requirements.yml -p dest\nrm -rf dest/ansible_collections/\n```\n\nThis should run without any problems\n\n### Invalid (does not) Fallback\n\n```\nANSIBLE_CONFIG=fallback_invalid/ansible.cfg ansible-galaxy collection install -r fallback_invalid/collections/requirements.yml -p dest -vvvv\n```\n\nThis does not work.\n\nIn other words, it does not fall back to the 2nd server due to a\n\"servname not found\" error with the first server.\n\n### Not Found Fallback\n\n```\nANSIBLE_CONFIG=fallback_not_found/ansible.cfg ansible-galaxy collection install -r fallback_not_found/collections/requirements.yml -p dest -vvvv\nrm -rf dest/ansible_collections/\n```\n\nDoes not exist:\n - https://galaxy-dev.ansible.com/chrismeyersfsu/tower_modules\n - https://galaxy-dev.ansible.com/chrismeyersfsu/test_things\n\nExists:\n - https://galaxy.ansible.com/chrismeyersfsu/tower_modules\n - https://galaxy.ansible.com/chrismeyersfsu/test_things\n\nThis does work. In this case it tries the dev galaxy. Upon this producing a 404 error,\nit tries the release galaxy. The release galaxy server works, and the\nrequirements are installed from there.\n\n#### Repeating with environment variables\n\n```\nANSIBLE_GALAXY_SERVER_FOO_URL=https://galaxy.ansible.com ANSIBLE_GALAXY_SERVER_BAR_URL=https://galaxy-dev.ansible.com ANSIBLE_GALAXY_SERVER_LIST=bar,foo ansible-galaxy collection install -r fallback_not_found/collections/requirements.yml -p dest -vvvv\nrm -rf dest/ansible_collections/\n```\n\nThis did not work at first, but an issue was filed and the problem was fixed.\nNow, for Ansible 2.9, this command works fine.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancoding%2Fcollection-requirements-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falancoding%2Fcollection-requirements-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancoding%2Fcollection-requirements-cases/lists"}