--- - 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.