ksaran@buildnet6200:~# ansible vSRX -m junipernetworks.junos.junos_ping
[WARNING]: sftp transfer mechanism failed on [rch2-prod-vpn-1.net]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: sftp transfer mechanism failed on [10.221.52.41]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [rch2-prod-vpn-1.net]. Use ANSIBLE_DEBUG=1 to see detailed information
[WARNING]: scp transfer mechanism failed on [10.221.52.41]. Use ANSIBLE_DEBUG=1 to see detailed information
rch2-prod-vpn-1.net | FAILED! => {
"changed": false,
"module_stderr": "Shared connection to rch2-prod-vpn-1.net closed.\r\n",
"module_stdout": "\r\nerror: unknown command: /bin/sh\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 0
}
10.221.52.41 | FAILED! => {
"changed": false,
"module_stderr": "Shared connection to 10.221.52.41 closed.\r\n",
"module_stdout": "\r\nerror: unknown command: /bin/sh\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 0
}
My concern is why there is warning message showing SFTP while i am trying to do Ping and i created a play and try to execute it but it still throws the same error.