Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Small library to allow Ansible plugins/modules to be imported.

Project description

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

Project details


Download files

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

Files for ansible_importer, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ansible_importer-0.0.2.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page