feat(system_check): add safety check for physical installs

This commit is contained in:
2026-02-20 20:19:37 +01:00
parent a2c19e2e49
commit 230c74fd9b

View File

@@ -1,4 +1,14 @@
---
- name: Physical install safety confirmation
when: system_cfg.type == "physical"
ansible.builtin.assert:
that:
- physical_install_confirmed | default(false) | bool
fail_msg: >-
DANGER: Physical install will WIPE {{ install_drive }} on {{ inventory_hostname }}.
Set physical_install_confirmed=true in inventory to proceed.
quiet: true
- name: VM existence protection check
when: system_cfg.type == "virtual"
block: