Skip to main content

Call ansible modules with python script

Project description

Ansible Call

CI

ansible-call is a Python package that allows you to interact with Ansible modules directly from your Python code. This package is designed to make it easier to call and work with Ansible modules programmatically.

Installation

You can install ansible-call from PyPI using pip:

pip install ansiblecall

Example

import ansiblecall

# Call the 'ping' module from 'ansible.builtin'
result = ansiblecall.module('ansible.builtin.ping', data='hello')

# Print the result
print(result)

# Prints
# {'ping': 'hello'}

Contributing

Contributions are welcome! If you'd like to contribute to ansible-call, please fork the repository and submit a pull request with your changes. Make sure to follow the project's coding standards and include tests for any new features.

License

ansible-call is licensed under the GNU GPLv3 License. See the LICENSE file for more details.

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

ansiblecall-0.1.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

ansiblecall-0.1.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file ansiblecall-0.1.1.tar.gz.

File metadata

  • Download URL: ansiblecall-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ansiblecall-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c871b628150a4aebcf088171bc791f9b24ad1b8ac859b45794be70407c23b336
MD5 7e4eec8b9708935af45d93e820d174e2
BLAKE2b-256 5c4167a70020b9770f7400ba4501783bdf5fab7324323ab3dd701b9c8dc428f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ansiblecall-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ansiblecall-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf268986dde45324896cbd8d3e076cb92f6337fae9fb2d1442665992c0813b99
MD5 9eee297c7dc8b1eba1692502df7a91b2
BLAKE2b-256 65bcbcc7db776b1c13c2eecc4881aa7db43b493b3c6d3e96bd48d8929809cf8c

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