[BUG]: qemu-gest-agent must be enabled only in VMs #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Description
Task that enables qemu-guest-agent is run any host, including LXCs, which don't have this service, it causes this task to fail
🔁 Steps to Reproduce
✅ Expected Behavior
This service is enabled only on VMs, because only VMs use it
❌ Actual Behavior
Virtualization type check is absent, so ansible tries to run the task on every host and fails
📄 Logs / Screenshots
TASK [../roles/base_system : Enable qemu-guest-agent] *******************************************************************************
[ERROR]: Task failed: Module failed: Could not find the requested service qemu-guest-agent: host
Origin: vmn-ansible/roles/base_system/tasks/install_packages.yaml:47:3
45
46
47 - name: Enable qemu-guest-agent
^ column 3
fatal: [lxc-name]: FAILED! => {"changed": false, "msg": "Could not find the requested service qemu-guest-agent: host"}
fatal: [lxc-name]: FAILED! => {"changed": false, "msg": "Could not find the requested service qemu-guest-agent: host"}
fatal: [lxc-name]: FAILED! => {"changed": false, "msg": "Could not find the requested service qemu-guest-agent: host"}
fatal: [lxc-name]: FAILED! => {"changed": false, "msg": "Could not find the requested service qemu-guest-agent: host"}
📎 Additional Context
No response
✅ Submission Checklist