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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ansiblecall-0.1.2.tar.gz
  • Upload date:
  • Size: 17.8 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.2.tar.gz
Algorithm Hash digest
SHA256 281b74d8cd44b0337a691461f8381de080a5266026e8ccc2221ce2b5a10483a9
MD5 768b49fc19de8bc01863d99ea216f975
BLAKE2b-256 6102f5607aa0c2cf6bfda335e8f9d34159840ec47a520301a86f9f2b5161727d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ansiblecall-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 103693becacb12ca0b4a1f0f37e26bc423cb14071a9f4f08386b2274ca0bc9f9
MD5 d7df5bc35f4080a3a6eb47c57dc875a0
BLAKE2b-256 003831f5f9907a036a20f484a52de2e1c51da2dcc416095c9c36a11794418ea7

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