[PATCH 5/9] base_image: diy: print rolling distribution information

Daniel Gomez <[email protected]>
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Daniel Gomez <[email protected]>

Enable printing of human-readable, on-demand output when the diy stdout
callback is in use.

Example:

make bringup
...

TASK: Show rolling distribution release warning
start: [localhost]
------------------------------------------------------------------
This is a rolling distribution release! To upgrade just do:

rm -rf /var/lib/libvirt/images/kdevops/guestfs/custom_images/debian-13-generic-amd64-daily/debian-13-generic-amd64-daily.raw/*
rm -f  /etc/virt-builder/repos.d/kdevops-custom-images-debian-13-generic-amd64-daily.conf
rm -f  /media/tarkir/libvirt/images/kdevops/guestfs/custom_images/debian-13-generic-amd64-daily/index

Running guests always use their own copy. To rebuild your custom
base image from the custom image, also remove the base image:

rm -f  ${BASE_IMAGE}

This can always be done safely without affecting running guests.
------------------------------------------------------------------
TASK: Show the custom virt-builder database
start: [localhost]
ok: [localhost]
TASK: Generating the index for debian-13-generic-amd64-daily
start: [localhost]

...

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 baf481ec..bdf33b34 100644
--- a/playbooks/roles/base_image/tasks/custom-image.yml
+++ b/playbooks/roles/base_image/tasks/custom-image.yml
@@ -274,6 +274,8 @@
 
       This can always be done safely without affecting running guests.
       ------------------------------------------------------------------
+  vars:
+    ansible_callback_diy_runner_on_ok_msg: "{{ ansible_callback_diy.result.output.msg }}"
   when:
     - guestfs_has_custom_raw_image_rolling|bool
 

-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.