[BUG]: qemu-gest-agent must be enabled only in VMs #33

Closed
opened 2026-09-16 09:31:10 +04:00 by max · 0 comments
Owner

📋 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

  1. Run maintain.yaml playbook

✅ 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

  • I have searched for existing issues (open and closed) that report the same problem
  • I have provided clear steps to reproduce the issue
  • I have included relevant logs or error messages (with sensitive info removed)
### 📋 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 1. Run maintain.yaml playbook ### ✅ 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 - [x] I have searched for existing issues (open and closed) that report the same problem - [x] I have provided clear steps to reproduce the issue - [x] I have included relevant logs or error messages (with sensitive info removed)
max added the bug label 2026-09-16 09:31:10 +04:00
max closed this issue 2026-09-16 09:52:06 +04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: max/vmn-ansible#33