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

Uploaded Source

Built Distribution

ansiblecall-0.3.5-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ansiblecall-0.3.5.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for ansiblecall-0.3.5.tar.gz
Algorithm Hash digest
SHA256 940c13d747db9e780d935ae12e6411120a4f063ead8760d2a4fbcc42cb6d0869
MD5 822e976b96d8bd0afb9e9764a8a3f068
BLAKE2b-256 011e24c17a9ed1c9ee085e48e0e6aeaffc37370938ec05f01d343e5c44bcd113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ansiblecall-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 793f0804b3444ee359510db1096ddec2a1839aabaa2e11b27766d7e3de395789
MD5 356aec095df1ae169f09359c3b4ed2dd
BLAKE2b-256 43ec756b241218ea84aa97df9ee38ada7d1dc21134ea22f086ac0655274bf9da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page