Discover both dependants and dependencies of Ansible playbooks and roles, respectively
Project description
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
Built Distribution
File details
Details for the file ansible_discover-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ansible_discover-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ba2d93f3505d63745ac476bbbc0b816691b83a821b0562c624e772ceccea65a |
|
MD5 | 278992dce880a21b3261d7a12bfb15ad |
|
BLAKE2b-256 | 97540f52d119efe6dfef8cd9a85a8c93d1742456ceee627ff0ed5e770c11e6e1 |