Skip to content

Commit d55d3dc

Browse files
committed
ansible: add lucid callback plugin for clean output
Add the lucid callback plugin to provide clean, minimal Ansible output for kdevops workflows. Current Ansible output is verbose by default making it difficult to see what matters during long-running test operations. Lucid solves this by showing only changes and errors at default verbosity while providing progressive detail at higher levels. The plugin includes dynamic mode with live updates for interactive terminals showing running tasks with spinners and elapsed time similar to BitBake/Yocto build output. For CI/CD and piped contexts it automatically falls back to static output. All runs generate comprehensive logs in .ansible/logs/ with playbook names and timestamps allowing multiple executions to coexist without conflicts. Task-level output control is available via the output_verbosity variable allowing playbooks to specify per-task visibility. Execution time is shown for all tasks providing consistent performance visibility. Logs always capture full verbosity independent of display settings ensuring complete audit trails. Verbosity levels control output progressively: no flags show only changed/failed tasks with stdout/stderr, -v adds ok/skipped tasks plus executed commands, -vv and -vvv enable tasks marked with higher output_verbosity values. Integrate lucid with kdevops Kconfig system providing output mode selection (auto/static/dynamic). Add defconfig fragments for standard use (lucid.config) and CI environments (lucid-ci.config). The CI fragment enables static mode with verbosity level 1 for comprehensive output suitable for build logs. Add documentation covering requirements, parameters, verbosity levels, status symbols, command display behavior, and CI/CD configuration. Generated-by: Claude AI Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
1 parent 0023c18 commit d55d3dc

File tree

9 files changed

+1277
-1
lines changed

9 files changed

+1277
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ extra_vars.json
2626
.config.old
2727

2828
ansible.cfg
29+
callback_plugins/__pycache__/
2930

3031
scripts/kconfig/.mconf-cfg
3132
scripts/workflows/fstests/lib/__pycache__/
@@ -136,3 +137,6 @@ terraform/oci/scripts/__pycache__/
136137

137138
scripts/__pycache__/
138139
docs/contrib/kdevops_contributions*
140+
__pycache__/
141+
142+
.ansible

CLAUDE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ make fix-whitespace-last-commit # Fixes commit white space damage
128128
make mrproper # Clean everything and restart from scratch
129129
```
130130

131+
### Ansible Callbacks
132+
133+
kdevops supports multiple Ansible stdout callback plugins (dense, debug,
134+
diy, lucid, or custom). The default is dense.
135+
136+
See [docs/ansible-callbacks.md](docs/ansible-callbacks.md) for:
137+
- Supported plugins and configuration
138+
- Command line override via `ANSIBLE_CFG_CALLBACK_PLUGIN`
139+
- Lucid plugin features and parameters
140+
131141
## Key Workflows
132142

133143
### fstests (Filesystem Testing)

callback_plugins/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)