ansible_importer-0.0.2
توضیحات
Small library to allow Ansible plugins/modules to be imported.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ansible_importer-0.0.2 |
| نام | ansible_importer |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nolan Brubaker |
| ایمیل نویسنده | palendae@gmail.com |
| آدرس صفحه اصلی | https://github.com/nrb/ansible_importer |
| آدرس اینترنتی | https://pypi.org/project/ansible_importer/ |
| مجوز | GPLv3 |
ansible_importer
----------------
Ansible modules and plugins are typically pure Python, but often lack the structure necessary to import
as Python code. This package is meant to allow programmers to import module code for testing purposes.
Usage
-----
..code-block:: python
import ansible_importer
ansible_importer.install('/abs/path/to/ansible/code')
# Assuming above path has a playbooks/plugins/actions/my_plugin.py module
from playbooks.plugins.actions.my_plugin import ActionModule
# Assuming playbooks/library/glance
from playbooks.library.glance import ManageGlance
# Assuming playbooks/inventory/dynamic_inventory.py
from playbooks.inventory import dynamic_inventory
نحوه نصب
نصب پکیج whl ansible_importer-0.0.2:
pip install ansible_importer-0.0.2.whl
نصب پکیج tar.gz ansible_importer-0.0.2:
pip install ansible_importer-0.0.2.tar.gz