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
ansiblecall-0.2.0.tar.gz
(18.4 kB
view hashes)
Built Distribution
Close
Hashes for ansiblecall-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1274d8b4d8f0d72502998fe004bf6b1734a615b01947b05e076f63fe4a5ff50 |
|
MD5 | 80983cfe9fdcc6e1a522a83773eaf58b |
|
BLAKE2b-256 | d776f52e6c7f5c426a7f58f4b6cae7f342d1b40a7647fb985ebe07211ff9753b |