Skip to main content

Discover both dependants and dependencies of Ansible playbooks and roles, respectively

Project description

Build Status PyPi Package

ansible-discover

ansible-discover is a command line tool to list dependencies and dependants of Ansible roles and playbooks, respectively.

One of its prime uses is in a CI tool like Jenkins. Once a change on, say a role, is committed, use ansible-discover to gather the dependant roles and playbooks. From this list, the respective CI jobs for playbook and role validations may then be triggered.

Installation

pip install ansible-discover

Usage

One use case (like outlined above) is to determine all roles (directly or indirectly) depending on a given set of roles:

ansible-discover roles predecessors PATHS

where PATHS is a space-delimited list of paths to roles (e.g., roles/my_sample_role).

In addition to predecessors (i.e., dependants) for roles, you can also discover

  • successors (i.e., dependencies) of roles: ansible-discover roles successors;

  • predecessors for playbooks: ansible-discover playbooks predecessors; and

  • successors of playbooks: ansible-discover playbooks successors.

License

Distributed under the XYZ license. See LICENSE.txt for more information.

Contributing

  • Fork it!

  • Create your feature branch: git checkout -b my-new-feature

  • Commit your changes: git commit -am 'Add some feature'

  • Push to the branch: git push origin my-new-feature

  • Submit a pull request :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ansible_discover-0.1.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file ansible_discover-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ansible_discover-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for ansible_discover-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 272ad9740611fcb01a67ac05c284f116d77dd4af3646b92797709674191a49d0
MD5 7319c82859f5fd19b7d77069d58dd9c2
BLAKE2b-256 ea3fd3621e1ca24a7aae7ec84fe158e1c9d13c8b12f5c71404f5ba86abb73126

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page