Complete the fix for all block-level failed_when attributes in
hypervisor detection tasks. Ansible does not support failed_when
at the block level; it must be applied to individual tasks.
Changes:
- Fix Proxmox VE block (line 94-121)
* Move failed_when: false to each task in the block
* Remove invalid block-level failed_when
- Fix LXD/LXC block (line 135-162)
* Move failed_when: false to each task in the block
* Remove invalid block-level failed_when
- Fix Docker block (line 176-199)
* Move failed_when: false to each task in the block
* Remove invalid block-level failed_when
All hypervisor detection blocks now have proper error handling:
✅ libvirt - fixed in previous commit
✅ Proxmox VE - fixed in this commit
✅ LXD/LXC - fixed in this commit
✅ Docker - fixed in this commit
This resolves the recurring Ansible syntax error:
ERROR! 'failed_when' is not a valid attribute for a Block
The playbook should now execute without syntax errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>