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 ansible-call

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

Uploaded Source

Built Distribution

ansiblecall-0.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ansiblecall-0.1.0.tar.gz
  • Upload date:
  • Size: 17.5 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.0.tar.gz
Algorithm Hash digest
SHA256 c5b9b9bb4e689e2fb35ce0267f924be9f1dd328945dde3e64b6f9a62cd426495
MD5 f71068f5d84bc1a99401f24b95330d22
BLAKE2b-256 af621bfa4ba00fd3d331ae8c0362e727225a2a6362f4c69d57faed30dff8c88b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ansiblecall-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9067fd097e712fd01dc4801ffac1cd3eea629ef92fb40961f82238e126967d30
MD5 d77590be2111a77038ed5fc0dcb72b74
BLAKE2b-256 ad5c45537a9d6e8435412788df04ab62ded175de9ad34de9dbded5fbc2afedd2

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