{"id":18722421,"url":"https://github.com/nleiva/inventory","last_synced_at":"2026-04-17T03:02:01.330Z","repository":{"id":52495323,"uuid":"520984611","full_name":"nleiva/inventory","owner":"nleiva","description":"Personal Ansible inventory collection","archived":false,"fork":false,"pushed_at":"2022-08-26T18:13:12.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T16:12:50.599Z","etag":null,"topics":["ansible","inventory","json","network"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nleiva.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}},"created_at":"2022-08-03T18:06:21.000Z","updated_at":"2022-08-04T16:49:10.000Z","dependencies_parsed_at":"2022-08-27T07:41:47.817Z","dependency_job_id":null,"html_url":"https://github.com/nleiva/inventory","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nleiva/inventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Finventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Finventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Finventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Finventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nleiva","download_url":"https://codeload.github.com/nleiva/inventory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nleiva%2Finventory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31913078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["ansible","inventory","json","network"],"created_at":"2024-11-07T13:41:22.065Z","updated_at":"2026-04-17T03:02:01.303Z","avatar_url":"https://github.com/nleiva.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inventory Collection for Ansible\n\n[![Ansible Lint](https://github.com/nleiva/inventory/actions/workflows/ansible-lint.yml/badge.svg)](https://github.com/nleiva/inventory/actions/workflows/ansible-lint.yml)\n\nThis repository hosts my personal Ansible inventory collection.\n\nThis collection includes a JSON plugin to read an inventory from a particular JSON structure in a file.\n\n## Included content\n\nClick on the name of a plugin or module to view that content's documentation:\n\n  - **Plugins**:\n    - [json](docs/json.md)\n\n## Installation and Usage\n\n### Installing the Collection from Ansible Galaxy\n\nBefore using this collection, you need to install it with the Ansible [Galaxy](https://galaxy.ansible.com/nleiva/inventory) CLI:\n\n```bash\n$ ansible-galaxy collection install nleiva.inventory\n```\n\n### Using a plugin from the Inventory Collection\n\nYou can reach the sample JSON inventory [file](hosts.json) for example via this [repository link](https://raw.githubusercontent.com/nleiva/ansible-inventory-plugin/main/hosts.json) to add it to your [inventory.yml](inventory.yml) file:\n\n```yml\n# inventory.yml\nplugin: nleiva.inventory.json\nlink_to_inventory: https://raw.githubusercontent.com/nleiva/ansible-inventory-plugin/main/hosts.json\nvalidate_certs: true\n```\n\n### Run an example\n\nWith the [inventory.yml](inventory.yml) file in place, you can run `ansible-inventory -i inventory.yml` to get the inventory populated:\n\n```bash\n$ ansible-inventory -i inventory.yml --graph\n@all:\n  |--@routers:\n  |  |--@ios:\n  |  |  |--sandbox-iosxe-latest-1.cisco.com\n  |  |--@iosxr:\n  |  |  |--sandbox-iosxr-1.cisco.com\n  |  |--@nxos:\n  |  |  |--sandbox-nxos-1.cisco.com\n  |--@ungrouped:\n```\n\n## Publishing New Versions\n\nWe need to TAG the version with a version number greater than the latest one:\n\n```\nexport TAG=1.0.6\n```\n\nAnd then build:\n\n```\nmake build\n```\n\nIt will end up in the [Inventory collection Galaxy page](https://galaxy.ansible.com/nleiva/inventory) if you have access to the namespace.\n\n## More Information\n\nFor more information about Inventory plugins, check out the resources in this [list](https://github.com/nleiva/ansible-links#inventory-plugins).\n\n\n## License\n\nGNU General Public License v3.0 or later\n\nSee [LICENCE](LICENSE) to see the full text.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnleiva%2Finventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnleiva%2Finventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnleiva%2Finventory/lists"}