Skip to main content

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.

Source Distribution

ansible_importer-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file ansible_importer-0.0.2.tar.gz.

File metadata

File hashes

Hashes for ansible_importer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d97cf388e5d058978ea5af958b954ed74585f8abfde5067cccdc280d9157dff7
MD5 8c21e8c708f344147986b44fb814cd3a
BLAKE2b-256 8708740465cc823e3de030f889615ab98a2cc80b212dc530c2581b3eaf132099

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