[PATCH 6/9] bootlinux: diy: add callback support to core kernel tasks
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> Adds DIY callback variables to core kernel operation tasks to display executed commands and output: - uname commands: Shows kernel version before/after installation - kernel installation: Shows make install command and progress - CXL test installation: Shows CXL module installation process This improves visibility into kernel installation workflow by showing: - Exact commands being executed (uname -r, make modules_install install) - Real-time output from installation process - Current vs target kernel version comparison Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]> --- playbooks/roles/bootlinux/tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/playbooks/roles/bootlinux/tasks/main.yml b/playbooks/roles/bootlinux/tasks/main.yml index f453caf6..e0eb2234 100644 --- a/playbooks/roles/bootlinux/tasks/main.yml +++ b/playbooks/roles/bootlinux/tasks/main.yml @@ -215,6 +215,10 @@ ansible.builtin.command: "uname -r" register: uname_cmd_before tags: ["uninstall-linux"] + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Check kernel uname for uninstall ansible.builtin.debug: @@ -322,6 +326,10 @@ tags: ["install-linux"] when: - not workflow_linux_packaged|bool + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Install {{ target_linux_tree }} cxl_test on the target nodes become: true @@ -336,6 +344,10 @@ when: - kdevops_workflow_enable_cxl|bool - not workflow_linux_packaged|bool + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Set the default kernel if necessary tags: ["saved"] @@ -350,6 +362,10 @@ ansible.builtin.command: "uname -r" register: uname_cmd tags: ["uname"] + vars: + ansible_callback_diy_runner_on_ok_msg: | + $ {{ ansible_callback_diy.result.output.cmd | join(' ') }} + {{ ansible_callback_diy.result.output.stdout | default('') }} - name: Check kernel uname ansible.builtin.debug: -- 2.50.1