[PATCH 3/9] base_image: diy: add callback support to custom virt-builder database display
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> Add DIY callback variable to "Show the custom virt-builder database" task to enhance output display with full message content instead of just "ok: [localhost]". The task now includes the vars section that enables DIY callback custom message formatting: vars: ansible_callback_diy_runner_on_ok_msg: "{{ ansible_callback_diy.result.output.msg }}" This makes the output consistent with other debug tasks like the rolling distribution release warning, showing the actual custom virt-builder paths in a more readable format. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]> --- playbooks/roles/base_image/tasks/custom-image.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/base_image/tasks/custom-image.yml b/playbooks/roles/base_image/tasks/custom-image.yml index b443b455..febb570d 100644 --- a/playbooks/roles/base_image/tasks/custom-image.yml +++ b/playbooks/roles/base_image/tasks/custom-image.yml @@ -275,6 +275,8 @@ Custom virt-builder source: {{ custom_source }} Custom virt-builder index: {{ custom_index }} Custom virt-builder image: {{ custom_image }} + vars: + ansible_callback_diy_runner_on_ok_msg: "{{ ansible_callback_diy.result.output.msg }}" - name: Generating the index for {{ base_image_os_version }} become: true -- 2.50.1