프로젝트
GitHub에서 보기
octplane/ansible_stdout_compact_logger
소개
Ansible 표준 출력 간결 로거
개발 도구What you can do
- one-line display
- pylint compatible (almost...)
- displays tasks content in a nice way
- including UTF-8 strings
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAnsible Stdout Compact Logger
Installation
- put somewhere on your disk
- add
callback_pluginssettings in your[defaults]settings in your ansible configuration - change stdout_callback to
anstomlog
cf ansible.cfg.
Features
- one-line display
- pylint compatible (almost...)
- displays tasks content in a nice way
- including UTF-8 strings
- indents structs, displays empty arrays, strings
- puts fields on top when available
['stdout', 'rc', 'stderr', 'start', 'end', 'msg'] - removes some fields when present
[, 'stdout_lines', '_ansible_verbose_always', '_ansible_verbose_override']to avoid too much clutter - reverts to standard logger when more than
vvverbosity - supports
no_logattribute in Task - supports
_ansible_verbose_alwaysand_ansible_verbose_override - supports multiple items in task (#1)
- multi host support
- correct duration computation
- Display duration in minutes when tasks last for more than 1 minute
- diff display support
- displays
stdoutandstderrnicely even when they contain\n - displays handlers calls
- Python 2/3 compatible
- better line colouring
- more test around curious errors
Without anstomlog

With anstomlog

Test the logger
- clone this repository
ansible-playbook test-1.yml
- to run the tests, call
python callbacks/anstomlog.py
License
MIT, see LICENSE file.
Tips and tricks
- Issue with non-ascii or utf-8 chars? Have a look at #4
Contributors
- Pierre BAILLET @octplane
- Frédéric COMBES @marthym
- @tterranigma
- @OurFriendIrony
- Farzad FARID @farzy
- Jérôme BAROTIN @jbarotin
- Dale Henries @dalehenries
- Thomas Decaux @ebuildy
관련 프로젝트 살펴보기
불러오는 중…