{"id":19804100,"url":"https://github.com/victorock/network_inventory","last_synced_at":"2026-02-06T00:32:43.024Z","repository":{"id":90321111,"uuid":"142899960","full_name":"victorock/network_inventory","owner":"victorock","description":"Inventory for Network Devices","archived":false,"fork":false,"pushed_at":"2018-08-06T20:40:47.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T05:52:27.720Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorock.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}},"created_at":"2018-07-30T16:19:52.000Z","updated_at":"2018-07-31T22:13:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b76ea83-c082-4503-8a75-ebd02d5d2b10","html_url":"https://github.com/victorock/network_inventory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorock/network_inventory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorock%2Fnetwork_inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorock%2Fnetwork_inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorock%2Fnetwork_inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorock%2Fnetwork_inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorock","download_url":"https://codeload.github.com/victorock/network_inventory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorock%2Fnetwork_inventory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29140171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-12T08:41:31.307Z","updated_at":"2026-02-06T00:32:43.002Z","avatar_url":"https://github.com/victorock.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role to Create Network Inventory\n=========\n\nAnsible role to create network inventory folder/files structure based on device facts.\n\n\u003e NOTE: Inventory is populated based on facts located at: hostvars[inventory_hostname].ansible_facts\n\nRole Variables\n--------------\n\nVariables are defined in `defaults/main.yml`.\n\n| Name              | Default Value       | Description          |\n|-------------------|---------------------|----------------------|\n| `autorun` | `False`  | Boolean to define if the role \"autorun\" (`tasks/main.yml`). Useful when you want to have dependencies solved by galaxy (`meta/main.yml`) but don't want it to run automatically.  |\n| `network_inventory_os` | `{{ ansible_network_os }}` | If ansible_network_os is not set the default is `ios`. |\n\nExamples\n------------\n\nFollow below different examples and ways to use this role.\n\n\u003e 1. Discover the Network Operating System.\n\n```YAML\n---\n- name: \"Network Discovery: PROBE\"\n  hosts: all\n  connection: local\n  gather_facts: false\n  roles:\n    - role: victorock.network_discovery\n      network_discovery: \"probe\"\n      autorun: true\n```\n\n\u003e 2. Use Platform specific role to gather facts from Network Operating System.\n\n```YAML\n---\n- name: \"Gather Facts: NXOS\"\n# This group will be created by previous play who will discover the platforms.\n  hosts: nxos\n  connection: network_cli\n  gather_facts: false\n  roles:\n    - role: ansible-network.cisco_nxos\n      function: get_facts\n```\n\n\u003e 3. Use Network Inventory role to create inventory Structure.\n\n```YAML\n---\n- name: \"Create Inventory\"\n  hosts: all\n  connection: local\n  gather_facts: false\n  roles:\n    - role: victorock.network_inventory\n      autorun: true\n```\n\n\u003e NOTE: Inventory files are created in the same directory of the playbook\ncalling the role `victorock.network_inventory`\n\nRequirements\n--------------\n\nThe best is to have facts populated by platform specific roles supported by Ansible Networking:\n  - ansible-network.arista_eos\n  - ansible-network.cisco_ios\n  - ansible-network.cisco_nxos\n\nLicense\n------------\n\nGPLv3\n\nAuthor\n------------\n\nVictor da Costa (@victorock)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorock%2Fnetwork_inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorock%2Fnetwork_inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorock%2Fnetwork_inventory/lists"}