refactor ♻️: Refactored all task files to use centralized helper functions from tasks/helpers.yml, improving code consistency, maintainability, and idempotency.
All task files now use centralized helper functions, ensuring idempotency across all stages. Code is cleaner, more maintainable, and no breaking changes were introduced.
This commit is contained in:
@@ -196,6 +196,7 @@ All task files use centralized helper functions for consistency and maintainabil
|
||||
| `check_vm_exists` | Check if VM config file exists | `vm_exists` |
|
||||
| `check_template` | Check if VM is a template | `is_template` |
|
||||
| `check_vm_status` | Get current VM status (running/stopped) | `vm_status` |
|
||||
| `check_disk_attached` | Check if disk is attached via `qm config` | `disk_attached` |
|
||||
| `check_storage` | Check available storage space | `storage_available` |
|
||||
| `validate_vm_id` | Validate VM ID format (100-999999) | (assertions only) |
|
||||
| `get_vm_info` | Read and parse VM config file | `vm_info` |
|
||||
|
||||
Reference in New Issue
Block a user