{"id":26404127,"url":"https://github.com/croesnick/ansible-discover","last_synced_at":"2025-06-26T18:35:29.730Z","repository":{"id":57410524,"uuid":"123975589","full_name":"croesnick/ansible-discover","owner":"croesnick","description":"Command line tool to list dependencies and dependants of Ansible roles and playbooks, respectively","archived":false,"fork":false,"pushed_at":"2018-09-14T12:33:00.000Z","size":71,"stargazers_count":4,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-17T10:07:00.011Z","etag":null,"topics":["ansible","automation","ci-tools"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/croesnick.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-05T20:36:23.000Z","updated_at":"2024-03-21T19:05:25.000Z","dependencies_parsed_at":"2022-08-27T22:01:38.795Z","dependency_job_id":null,"html_url":"https://github.com/croesnick/ansible-discover","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croesnick%2Fansible-discover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croesnick%2Fansible-discover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croesnick%2Fansible-discover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/croesnick%2Fansible-discover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/croesnick","download_url":"https://codeload.github.com/croesnick/ansible-discover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056428,"owners_count":20390720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","automation","ci-tools"],"created_at":"2025-03-17T16:20:34.038Z","updated_at":"2025-03-17T16:20:34.627Z","avatar_url":"https://github.com/croesnick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"|Build Status| |PyPi Package|\n\nansible-discover\n================\n\n*ansible-discover* is a command line tool to list dependencies and\ndependants of `Ansible` roles and playbooks, respectively.\n\nOne of its prime uses is in a CI tool like Jenkins. Once a change on,\nsay a role, is committed, use *ansible-discover* to gather the dependant\nroles and playbooks. From this list, the respective CI jobs for playbook\nand role validations may then be triggered.\n\nInstallation\n------------\n\n::\n\n    pip install ansible-discover\n\nUsage\n-----\n\nOne use case (like outlined above) is to determine all roles (directly\nor indirectly) depending on a given set of roles:\n\n::\n\n    ansible-discover roles predecessors PATHS\n\nwhere ``PATHS`` is a space-delimited list of paths to roles (e.g.,\n``roles/my_sample_role``).\n\nIn addition to predecessors (i.e., dependants) for roles, you can also\ndiscover\n\n-  successors (i.e., dependencies) of roles:\n   ``ansible-discover roles successors``;\n-  predecessors for playbooks:\n   ``ansible-discover playbooks predecessors``; and\n-  successors of playbooks: ``ansible-discover playbooks successors``.\n\nRelated tools\n-------------\n\n-  `ansigenome`_\n-  `ansible-roles-graph`_\n-  `ansible-review`_\n\nLicense\n-------\n\nDistributed under the XYZ license. See ``LICENSE.txt`` for more\ninformation.\n\nContributing\n------------\n\n-  Fork it!\n-  Create your feature branch: ``git checkout -b my-new-feature``\n-  Commit your changes: ``git commit -am 'Add some feature'``\n-  Push to the branch: ``git push origin my-new-feature``\n-  Submit a pull request :)\n\n.. _Ansible: https://github.com/ansible/ansible\n.. _ansigenome: https://github.com/nickjj/ansigenome\n.. _ansible-roles-graph: https://github.com/sebn/ansible-roles-graph\n.. _ansible-review: https://github.com/willthames/ansible-review\n\n.. |Build Status| image:: https://travis-ci.org/croesnick/ansible-discover.svg?branch=master\n   :target: https://travis-ci.org/croesnick/ansible-discover\n.. |PyPi Package| image:: https://badge.fury.io/py/ansible-discover.svg\n   :target: https://badge.fury.io/py/ansible-discover","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcroesnick%2Fansible-discover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcroesnick%2Fansible-discover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcroesnick%2Fansible-discover/lists"}