Call ansible modules with python script
Project description
Ansible Call
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
Built Distribution
File details
Details for the file ansiblecall-0.2.1.tar.gz
.
File metadata
- Download URL: ansiblecall-0.2.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | be381663eb9f76a718d537b5965cf4cc1568b8fcfa2c076bdb0d74ffbea35910 |
|
MD5 | 00b9b3bc9a4f178fa37d3d523dc6e823 |
|
BLAKE2b-256 | 6e3b8873fd31037828cbfdf6d65861ba28b01669da9446b9bac2f90e936e0045 |
File details
Details for the file ansiblecall-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: ansiblecall-0.2.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5a3439edb3fc72eba5ebb4df5a6abbf2432c5065d4e471f17949ed581c66d6 |
|
MD5 | 9c5a810efef193375765f228aefc13d4 |
|
BLAKE2b-256 | 690af1c4c32cea2337aeae4aa661d4f1d859b250992aa48136ea2a90eca3fb54 |