Thanks

I added one more exit making it two exit at the same place and still error 
message 

The full traceback is:
  File "/tmp/ansible_BvrW7j/ansible_module_expect.py", line 109, in wrapped
    return next(resp_gen)
fatal: [10.201.250.41]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "chdir": null,
            "command": "ssh admin@10.101.250.41",
            "creates": null,
            "echo": false,
            "removes": null,
            "responses": {
                "Password": "xxxxxx",
                "Password for ansible@10.241.11.237": "yyyyy",
                "admin@POD1_SRX210>": [
                    "file copy /config/juniper.conf.49.gz 
ftp://ansible@10.241.11.237/juniper.conf.49.gz";,
                    "exit",
                    "exit"
                ]
            },
            "timeout": 30
        }
    },
    "msg": "No remaining responses for 'admin@POD1_SRX210>', output was ' 
for ansible@10.241.11.237:\r\nfetch: 
ftp://ansible@10.241.11.237/juniper.conf.49.gz: Not logged in\r\nerror: 
put-file failed\r\nerror: could not send local copy of 
file\r\n\r\nadmin@POD1_SRX210>'"
}
 [WARNING]: Could not create retry file '/etc/ansible/backup-juniper-
expect.retry'.         [Errno 13] Permission denied: u'/etc/ansible/backup-
juniper-expect.retry'

PLAY RECAP 
*********************************************************************
10.201.250.41              : ok=1    changed=0    unreachable=0    failed=1
ansible@ansible-new:/etc/ansible$

Another issue is that manually after copying file  before it exits 
it displays this message 
ftp://ansible@10.241.11.237/juniper.conf.49.gz100% of 1035  B  317 kBps
I am not sure if this matters



On Friday, March 9, 2018 at 3:39:03 PM UTC, Kai Stian Olstad wrote:

> On Friday, 9 March 2018 16.19.37 CET 'Daley Okuwa' via Ansible Project 
> wrote: 
> > fatal: [10.201.250.41]: FAILED! => { 
> >     "changed": false, 
> >     "invocation": { 
> >         "module_args": { 
> >             "chdir": null, 
> >             "command": "ssh ad...@10.101.250.41 <javascript:>", 
> >             "creates": null, 
> >             "echo": false, 
> >             "removes": null, 
> >             "responses": { 
> >                 "Password": "xxxxxx", 
> >                 "Password for ans...@10.241.11.237 <javascript:>": 
> "yyyyy", 
> >                 "admin@POD1_SRX210>": [ 
> >                     "file copy /config/juniper.conf.49.gz 
> > ftp://ansible@10.241.11.237/juniper.conf.49.gz";, 
> >                     "exit" 
> >                 ] 
> >             }, 
> >             "timeout": 30 
> >         } 
> >     } 
> > } 
> > MSG: 
> > No remaining responses for 'admin@POD1_SRX210>', output was ' 
> > ...er.conf.49.gz fadmin@POD1_SRX210>'.11.237/juniper.co 
>
> I was hoping the -vvv would give some more information that this. 
>
> Since it's reporting No remaining responses for 'admin@POD1_SRX210>' could 
> you add a few exit to the admin@POD1_SRX210> and try to run it again. 
>
>
> -- 
> Kai Stian Olstad 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fa90c3f5-3642-49c9-840e-3307c1fd4c6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to