I am having issues to use junos_scp in my playbook:
name: copy files from ansible server to routers
hosts: "xxxxx"
tasks:
- name: copy dir
junos_scp:
src: test.json
dest: /tmp/
and, my connection settings:
[junos:vars]
ansible_connection=netconf
ansible_network_os=junos
The connection is fine. But, failed with copying file:
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
File "/tmp/ansible_junos_scp_payload_7vHEF0/__main__.py", line 165, in
main
device = connect(module)
File "/tmp/ansible_junos_scp_payload_7vHEF0/__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")
fatal: [tl1-mx5cb-1a]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"dest": "/tmp/",
"host": null,
"password": null,
"port": null,
"provider": {},
"recursive": false,
"remote_src": false,
"src": [
"test.json"
],
"ssh_keyfile": null,
"timeout": null,
"transport": null,
"username": null
}
},
"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/06f7607e-a222-45c4-bf2a-2033089000df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.