![]() ![]() Because, I use the below shell script (which is basically the same steps from the play) to upload file and it works perfect. To help understand the project here is a basic diagram of the work flow and how the components interact. This is achieved by using WinSCP, ConEmu 圆4, Cygwin 圆4 binaries and bash/Windows scripting with Notepad 圆4. I am not able to understand the warning w.r.t EOF part and if it's the reason for the file upload not happening. Lftp for Windows is a solution to the problem of using Lftp in an easy and user friendly way on Windows. Localhost : ok=4 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "/bin/sh: warning: here-document at line 0 delimited by end-of-file (wanted `EOF')" "stderr": "/bin/sh: warning: here-document at line 0 delimited by end-of-file (wanted `EOF')", "cmd": "lftp <<EOF cd pub put /etc/hosts bye EOF\n", Then i edited my play to display result register and found a warning. However, i can't find the file that I uploaded using my play. I wrote a play to upload file to ftp server and it returned success always. I uploaded a file using put and was able to find the file in ftp server, when i do ls. I setup ftp server using ansible and verified it's working by manually doing lftp from my localhost
0 Comments
Leave a Reply. |