Ansible Parser
The Ansible Parser is intended to parse the output that Ansible returns.
Installation
Simply install using:
pip install ansible-output-parser
Usage
from ansible_parser.play import Play
play = "" # populate with play output
ansible = Play(play_output=play)
failures = ansible.failures()
Alternatively the following can be executed to read from a log file:
from ansible_parser.logs import Logs
log_file = "" # path to log file
log_plays = Logs(log_file=log_file)
Reading from a log file will result in multiple plays as it may process plays with the same name.
Metadata
Release files for ansible-output-parser 0.1.0
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-output-parser-0.1.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansible_output_parser-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / ansible-output-parser-0.1.0.tar.gz
| Download URL | ansible-output-parser-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1cf5fc10ba3a0cbeff962e103ba5d4c17f3146cdad4a783fc90fc122fe7f2a6
|
|
BLAKE2b-256 checksum How to use checksums |
d7ff4b2385a82dec10f38357d622cda91753343b459ed6aace0685e1d7bf585d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / ansible_output_parser-0.1.0-py3-none-any.whl
| Download URL | ansible_output_parser-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0d44163b6f13bf30de6c2a89c2fdef8ff3ba205130f1e967874a0f39a0247e0
|
|
BLAKE2b-256 checksum How to use checksums |
cb878a9958811b2e9064372b73b5388610f12916b9b8d5fbf2e068f21b2db497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|