Re: [PATCH] guestfs: port status script to Ansible with libvirt URI fix

Chuck Lever <[email protected]>
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
On 9/17/25 1:49 AM, Daniel Gomez wrote:
> From: Daniel Gomez <[email protected]>
> 
> Convert scripts/status_guestfs.sh shell script to Ansible implementation
> in playbooks/roles/guestfs/tasks/status/main.yml. The new implementation:
> 
> - Uses proper libvirt_uri variable for LIBVIRT_DEFAULT_URI
> - Integrates with DIY callback to show command output
> - Provides idempotent Ansible approach with tagging support
> - Fixes missing libvirt URI context that caused empty virsh output
> 
> Update scripts/guestfs.Makefile to call ansible-playbook with --tags status
> instead of the shell script. Add missing output yaml to LIBVIRT_URI_PATH
> for proper URI variable generation.
> 
> Generated-by: Claude AI
> Signed-off-by: Daniel Gomez <[email protected]>

Reviewed-by: Chuck Lever <[email protected]>

I hadn't done this already because the Ansible implementation of these
steps takes noticeably more time. But I don't mind that if you guys
don't.

-- 
Chuck Lever
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.