Parser for Ansible output
Project description
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.
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 ansible-output-parser-0.1.0.tar.gz
.
File metadata
- Download URL: ansible-output-parser-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cf5fc10ba3a0cbeff962e103ba5d4c17f3146cdad4a783fc90fc122fe7f2a6 |
|
MD5 | 68dc9daf3e44ace04e2578dbc5e7b2dc |
|
BLAKE2b-256 | d7ff4b2385a82dec10f38357d622cda91753343b459ed6aace0685e1d7bf585d |
File details
Details for the file ansible_output_parser-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ansible_output_parser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d44163b6f13bf30de6c2a89c2fdef8ff3ba205130f1e967874a0f39a0247e0 |
|
MD5 | 1f67b64b40501b2bdbe62c28b16a5c0d |
|
BLAKE2b-256 | cb878a9958811b2e9064372b73b5388610f12916b9b8d5fbf2e068f21b2db497 |