can ansible gather info on network different devices?

Hi all,
I’m new with ansible,
I need a tool for my LAB at work and wondering if ansible is the one.
can I gather information on all devices in the same network with ansible? the devices are may vary by types OS, and even bare metal devices.
the info that I need is:
OS type
CPU (id number, frequency,cores etc…)
RAM (type,frequency,how many cards, capacity of each card)
and more of that kind…

the different devices on the network may by with different kind of OS, or pre installed OS.

thanks,
Itay.

Please refer this link http://docs.ansible.com/ansible/latest/list_of_network_modules.html
for the list of available network modules.

Use *_facts modules based on platform (eg: ios_facts, junos_facts) which will fetch device information that you are looking for.

Regards,
Ganesh