prole/infrastructure/roles/k3s/tests/no_rancher_sd_guardrail.yml
chrisfu d2295f4c2b ansible: add K3s datastore export/import, improve iSCSI handling, and migrate merlin to MariaDB primary
- Added tasks and playbooks for K3s datastore export/import using MariaDB Tools role, with associated tests and defaults.
- Enhanced iSCSI role to support mkfs-once logic and safer re-initialization of block storage.
- Migrated iSCSI-backed Rancher data from retropie to merlin.prole.org.
- Updated k3s roles/playbooks to relax Rancher storage preflight checks, supporting PARTUUID-based mounts.
- Adjusted Samba AD NetBIOS name derivation to use uppercase short hostname by default.
- Incremented prole DB version to 104, updated generated prole.cfg, inventory, and recovery manifest templates.
2026-03-06 14:25:13 -08:00

18 lines
716 B
YAML

---
- name: Ensure k3s install preflight does not enforce rancher-on-SD guardrail
hosts: localhost
connection: local
gather_facts: false
tasks:
- name: Read k3s install tasks
ansible.builtin.set_fact:
_k3s_install_tasks: "{{ lookup('ansible.builtin.file', playbook_dir ~ '/../tasks/install.yml') }}"
- name: Assert rancher-on-SD guardrail is absent
ansible.builtin.assert:
that:
- (_k3s_install_tasks is search('Fail if rancher storage is on SD')) == false
- (_k3s_install_tasks is search('Preflight - detect rancher backing device')) == false
fail_msg: >-
k3s install preflight should not hard-fail based on rancher storage device.