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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ansiblecall-0.2.0.tar.gz
  • Upload date:
  • Size: 18.4 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.0.tar.gz
Algorithm Hash digest
SHA256 a3dc5d3951cea9834b7e551e8dbaa243ff5e8a2bf3815691010882a0258ee706
MD5 66a4547a93ca37d142ea86a70f5ec607
BLAKE2b-256 900f699f6b9db118f0c9315e46b936e28b3a1d7157e55bb3cb46762df41a05a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ansiblecall-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1274d8b4d8f0d72502998fe004bf6b1734a615b01947b05e076f63fe4a5ff50
MD5 80983cfe9fdcc6e1a522a83773eaf58b
BLAKE2b-256 d776f52e6c7f5c426a7f58f4b6cae7f342d1b40a7647fb985ebe07211ff9753b

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