I'm trying to execute this on the Master Node
ansible all -m shell -a "/bin/ping -c3 `hostname`"
And instead of pinging remote hostname, it's pinging Master Node
e.g., Master Node hostname = Master
Remote Node hostname = Slave
The above command does this
/bin/ping -c3 Master (instead of /bin/ping -c3 Slave)
Please suggest on how to achieve this in Ansible.