mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 20:24:40 +00:00
- 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)
19 lines
732 B
YAML
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. |