Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
Deprecated
Please do not use this tool, it is deprecated and no longer maintained.
What this package sets out to do can easily be accomplished with
Ansible Runner's interface.run() method instead. For example:
# my_automation_tool.py
from ansible_runner import interface as runner_interface
runner = runner_interface.run(
private_data_dir='path/to/tmp-private-data',
playbook='setup-my-server.yml',
inventory={
'all': {
'hosts': {
'my-server.com': {'ansible_user': 'remote_user'},
},
},
'ungrouped': {'hosts': {}},
},
extravars={
'some_string': 'Hello, World!',
'some_list': ['Hello', 'World!'],
},
project_dir='/path/to/my_automation_tool/src/project',
# etc...
)
if runner.rc == 0:
print('Finished successfully')
else:
print('Error')
Metadata
Release files for ansible-directory-helper 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansible_directory_helper-0.3.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansible_directory_helper-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / ansible_directory_helper-0.3.1.tar.gz
| Download URL | ansible_directory_helper-0.3.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dca6f47477194ccb5b70d0aeac889605af6d5e80730e5ea0c6b217183d27d32f
|
|
BLAKE2b-256 checksum How to use checksums |
7e85f52c8ae02cfb0b384798f8c484da5cc28f769ff4cfbea443a9cd6e132189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / ansible_directory_helper-0.3.1-py3-none-any.whl
| Download URL | ansible_directory_helper-0.3.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c24dfcf80a4189e87e2247d2a2e1aa9860b6f03b760f0e4c3733f9384f70260
|
|
BLAKE2b-256 checksum How to use checksums |
514a84b06374d342977f0605bc62fec3c03dbe2a761a67e79f4b28f3eb104f0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|