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.2.2.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

ansiblecall-0.2.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ansiblecall-0.2.2.tar.gz
Algorithm Hash digest
SHA256 26bcb377a5d723fe6af3a818113c95eaa6555205d1682b272f7fde4db9a79861
MD5 d04666271e7d4a64cab183bbbafdc34c
BLAKE2b-256 aee0179061b06823c69bf6765216990c5182091e5ab537e6b22458fbf7e63ddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ansiblecall-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d6080dc0c31cb2c89bc48409367b77dd5b9f998563886fd067f460e6c8cc725
MD5 850f9c6483fbb1f23916040cbb186a07
BLAKE2b-256 918de5104e2a51649d17f0c6cb0d2aad60ec92fc7c175f9b49f9065d1fd670ba

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