I have three hosts set up in a virtual environment in order to test things out before deployment. I was wondering if there's a way to specify that when I use:
''' ansible all -m ping '''
To ping windows hosts with win_ping and linux hosts with ping. Currently when I run the above I receive one success on the linux host and two errors for exceptions on the windows hosts. But when I run:
''' ansible all -m win_ping ''' It does the inverse where the two windows hosts will reply back and the linux box will reply with an error. The windows hosts are configured to use winrm and the linux host is using ssh. Any insight or do I need to split things between windows and linux to have things operational?
net_ping
command can ping both Windows and Linux destinations.