On 26.04.16 01:50 Mahendra wrote:

>   ansible root# ansible all -m shell -a "/sbin/ethtool eth4"  -s

>> >   I am trying to get the nic (eth0) info using ansible .. 

Maybe your nic is not called eth0 on all hosts? You use eth4 later on,
so on some hosts this would cause trouble.

Also, does ansible's setup module not contain the info?

ansible -m setup foobar

displays the facts for host foobar, this contains some info on the nics...

Johannes

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/572836E1.6030903%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to