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?


On Wed, 13 Sept 2023 at 15:33, J M <[email protected]> wrote:

> 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
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/d93dc1bf-c56d-4ceb-8251-bb7d038ede72n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d93dc1bf-c56d-4ceb-8251-bb7d038ede72n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKtKohQ%2BCOnqkm5LQpnBRWCr%3DiuqD2Gbi6a5FLG_2gzFK5W6gw%40mail.gmail.com.

Reply via email to