Based on the logs it seems you have not set the value of provider argument in the task. junos_scp module requires the provider key to be set. More details refer the module documentation https://docs.ansible.com/ansible/latest/modules/junos_scp_module.html
On Fri, May 17, 2019 at 4:38 PM Yan Sun <[email protected]> wrote: > WARNING: The below traceback may *not* be related to the actual failure. > File "/tmp/ansible_junos_scp_payload_jlnsCA/__main__.py", line 165, in > main > device = connect(module) > File "/tmp/ansible_junos_scp_payload_jlnsCA/__main__.py", line 114, in > connect > device = Device(host, **kwargs) > File "/usr/lib/python2.7/site-packages/jnpr/junos/device.py", line 1151, > in __init__ > raise ValueError("You must provide either 'host' or 'sock_fd' value") > > failed: [tl1-mx5cb-1b] (item=/home/tl1-mx5cb-1b.config.txt) => { > "changed": false, > "invocation": { > "module_args": { > "dest": "/tmp/", > "host": null, > "password": null, > "port": null, > "provider": {}, > "recursive": false, > "remote_src": false, > "src": [ > "/home/tl1-mx5cb-1b.config.txt" > ], > "ssh_keyfile": null, > "timeout": null, > "transport": null, > "username": null > } > }, > "item": "/home/tl1-mx5cb-1b.config.txt", > "msg": "You must provide either 'host' or 'sock_fd' value" > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/3688461b-1e36-422b-8e63-1324c4fa82bc%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/3688461b-1e36-422b-8e63-1324c4fa82bc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2B6y2sG22k4tozZRjYPJVqY4Sd2SXu8%3DtGneK56ibnyGdCf4%3Dw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
