feat(system_check): add safety check for physical installs

This commit is contained in:
2026-02-20 20:19:37 +01:00
parent be51bfe101
commit 15122b924d

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 - name: VM existence protection check
when: system_cfg.type == "virtual" when: system_cfg.type == "virtual"
block: block: