Specific question or doubt about identification of hardware machines

34 views
Skip to first unread message

J M

unread,
Sep 13, 2023, 10:33:39 AM9/13/23
to Ansible Project
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

Will McDonald

unread,
Sep 13, 2023, 11:02:08 AM9/13/23
to ansible...@googlegroups.com
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?


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d93dc1bf-c56d-4ceb-8251-bb7d038ede72n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages