Is there a way to find out network speed and bandwidth using ansible

Hi

I want to check machine is provisioned with proper specifications or not. As part of that I need to check the speed and bandwidth. Setup does not give any info on this.,

ethtool eth0
Settings for eth0:
Link detected: yes

The ethtool command gives only this much info. Other properties are not listed on the provisioned machines (RHEL 7.2) . Is there a way to get the speed and bandwidth details ?

Thanks

Not what you’re after, I suspect, but…

shell: “ethtool {{ ansible_default_ipv4.interface }} | awk ‘/Duplex|Speed/ { print $1, $2 }’”

Thanks. As mentioned in my email, ethtool is not returning anything on my machine except as below.

ethtool eth0
Settings for eth0:
Link detected: yes

Only above info is listed. So when I try to run your command, I get blank