Specific question or doubt about identification of hardware machines

Hi,

I have a doubt about how can Ansible the indentification of hardware machines.

The specific question is how you can uniquely identify whether you are on an Nvidia Jetson device type host or not.

Specifically, I need to program something like:
if I’m on a Nvidia Jetson device then…

Regards,
Cesar Jorge

Check to see if there’s anything you can key off in the facts gathered with https://docs.ansible.com/ansible/latest/collections/ansible/builtin/setup_module.html ?

For example (and this isn’t complete):

“ansible_architecture”: “x86_64”,
“ansible_bios_date”: “NA”,
“ansible_bios_vendor”: “NA”,
“ansible_bios_version”: “NA”,
“ansible_board_asset_tag”: “NA”,
“ansible_board_name”: “NA”,
“ansible_board_serial”: “NA”,
“ansible_board_vendor”: “NA”,
“ansible_board_version”: “NA”,
“ansible_chassis_asset_tag”: “NA”,
“ansible_chassis_serial”: “NA”,
“ansible_chassis_vendor”: “NA”,
“ansible_chassis_version”: “NA”,

If that doesn’t expose something you can use, then look to see if dmidecode might?