|
|
@ -18,9 +18,9 @@ DOCUMENTATION = """
|
|
|
|
module: net_get
|
|
|
|
module: net_get
|
|
|
|
version_added: "2.6"
|
|
|
|
version_added: "2.6"
|
|
|
|
author: "Deepak Agrawal (@dagrawal)"
|
|
|
|
author: "Deepak Agrawal (@dagrawal)"
|
|
|
|
short_description: Copy files from a network device to Ansible Controller
|
|
|
|
short_description: Copy a file from a network device to Ansible Controller
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- This module provides functionlity to copy file from network device to
|
|
|
|
- This module provides functionality to copy file from network device to
|
|
|
|
ansible controller.
|
|
|
|
ansible controller.
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
src:
|
|
|
|
src:
|
|
|
@ -40,7 +40,7 @@ options:
|
|
|
|
either be the full path on the Ansible control host or a relative
|
|
|
|
either be the full path on the Ansible control host or a relative
|
|
|
|
path from the playbook or role root directory.
|
|
|
|
path from the playbook or role root directory.
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
- Same filename as specified in src. The path will be playbook root
|
|
|
|
- Same filename as specified in I(src). The path will be playbook root
|
|
|
|
or role root directory if playbook is part of a role.
|
|
|
|
or role root directory if playbook is part of a role.
|
|
|
|
|
|
|
|
|
|
|
|
requirements:
|
|
|
|
requirements:
|
|
|
@ -48,15 +48,15 @@ requirements:
|
|
|
|
|
|
|
|
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- Some devices need specific configurations to be enabled before scp can work
|
|
|
|
- Some devices need specific configurations to be enabled before scp can work
|
|
|
|
These configuration should be pre-configued before using this module
|
|
|
|
These configuration should be pre-configured before using this module
|
|
|
|
e.g ios - C(ip scp server enable)
|
|
|
|
e.g ios - C(ip scp server enable).
|
|
|
|
- User privileage to do scp on network device should be pre-configured
|
|
|
|
- User privilege to do scp on network device should be pre-configured
|
|
|
|
e.g. ios - need user privileage 15 by default for allowing scp
|
|
|
|
e.g. ios - need user privilege 15 by default for allowing scp.
|
|
|
|
- Default destination of source file
|
|
|
|
- Default destination of source file.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = """
|
|
|
|
EXAMPLES = """
|
|
|
|
- name: copy file from the network device to ansible controller
|
|
|
|
- name: copy file from the network device to Ansible controller
|
|
|
|
net_get:
|
|
|
|
net_get:
|
|
|
|
src: running_cfg_ios1.txt
|
|
|
|
src: running_cfg_ios1.txt
|
|
|
|
|
|
|
|
|
|
|
|