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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 17 deletions

View file

@ -31,4 +31,20 @@
that:
- result.changed == true
- name: copy file with non-ascii characters to ios in template mode(Fail case)
net_put:
src: nonascii.bin
mode: 'template'
register: result
ignore_errors: true
- name: copy file with non-ascii characters to ios in default mode(binary)
net_put:
src: nonascii.bin
register: result
- assert:
that:
- result.changed == true
- debug: msg="END ios cli/net_put.yaml on connection={{ ansible_connection }}"