prole/infrastructure/roles/k3s/tests/no_rancher_sd_guardrail.yml
chrisfu 436c6214df checkpoint: k3s agent config + node labels + registry optimizations
- k3s: render server-only config keys only for servers; add regression test; make guardrail test non-sudo

- k3s/site: add post-provision node labeling tasks + playbook tier; extend inventory node label mapping

- registry: default namespace to common-services and skip redundant image pushes by probing registry manifests (installer + init scripts)
2026-03-07 03:14:26 -08:00

19 lines
732 B
YAML

---
- name: Ensure k3s install preflight does not enforce rancher-on-SD guardrail
hosts: localhost
connection: local
gather_facts: false
become: 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.