A small helper library to manage local directories for Ansible Runner
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
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')
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansible_directory_helper-0.3.1.tar.gz.
File metadata
- Download URL: ansible_directory_helper-0.3.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dca6f47477194ccb5b70d0aeac889605af6d5e80730e5ea0c6b217183d27d32f
|
|
| MD5 |
8638a254dc8efce0aad4b0248d06fcd1
|
|
| BLAKE2b-256 |
7e85f52c8ae02cfb0b384798f8c484da5cc28f769ff4cfbea443a9cd6e132189
|
File details
Details for the file ansible_directory_helper-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ansible_directory_helper-0.3.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c24dfcf80a4189e87e2247d2a2e1aa9860b6f03b760f0e4c3733f9384f70260
|
|
| MD5 |
8adfdc3405ebd4fd6a2f6afdf130a1c2
|
|
| BLAKE2b-256 |
514a84b06374d342977f0605bc62fec3c03dbe2a761a67e79f4b28f3eb104f0d
|