net_put module: add default mode to copy binary files (#41476)

* add default mode to copy binary files

* sanity fix

* add version for new options
This commit is contained in:
Deepak Agrawal
2018-06-20 16:02:49 +05:30
committed by GitHub
parent 2e68811c34
commit e91cee1a31
3 changed files with 70 additions and 17 deletions

View File

@@ -42,6 +42,15 @@ options:
- Filename from src and at default directory of user shell on
network_os.
required: no
mode:
description:
- Set the file transfer mode. If mode is set to 'template' then src
file will go through jinja2 template engine to replace any vars if
present in src file. If mode is set to 'binary' then file will be
copied as it is to destination device.
default: binary
choices: ['binary', 'template']
version_added: "2.7"
requirements:
- "scp"