--- - name: "Seed lscpu/lspci/lsusb registers ({{ fixture.name }})" ansible.builtin.set_fact: _hardware_lscpu: { stdout: "{{ fixture.lscpu }}" } _hardware_lspci: { stdout: "{{ fixture.lspci | join('\n') }}", stdout_lines: "{{ fixture.lspci }}" } _hardware_lsusb: { stdout: "{{ fixture.lsusb }}" } - name: "Resolve hardware profile ({{ fixture.name }})" ansible.builtin.include_tasks: ../../roles/environment/tasks/_resolve_hardware_profile.yml - name: "Assert resolved profile ({{ fixture.name }})" ansible.builtin.assert: that: - hardware_profile_active.cpu == fixture.expect.cpu - hardware_profile_active.gpus == fixture.expect.gpus - hardware_profile_active.wireless == fixture.expect.wireless - hardware_profile_active.audio == fixture.expect.audio - (hardware_profile_active.fingerprint | bool) == (fixture.expect.fingerprint | bool) - (hardware_profile_active.bluetooth | bool) == (fixture.expect.bluetooth | bool) - (hardware_profile_active.camera.uvc | bool) == (fixture.expect.camera.uvc | bool) - (hardware_profile_active.camera.ipu6 | bool) == (fixture.expect.camera.ipu6 | bool) - (hardware_profile_active.nvidia_supports_open | bool) == (fixture.expect.nvidia_supports_open | bool) fail_msg: "[{{ fixture.name }}] FAIL got {{ hardware_profile_active }}" success_msg: "[{{ fixture.name }}] OK {{ hardware_profile_active }}"