mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
779 B
YAML
35 lines
779 B
YAML
7 years ago
|
---
|
||
7 years ago
|
- debug: msg="START ios cli/net_put.yaml on connection={{ ansible_connection }}"
|
||
7 years ago
|
|
||
|
# Add minimal testcase to check args are passed correctly to
|
||
|
# implementation module and module run is successful.
|
||
|
|
||
|
- name: setup
|
||
|
ios_config:
|
||
|
lines:
|
||
|
- ip ssh version 2
|
||
|
- ip scp server enable
|
||
|
- username {{ ansible_ssh_user }} privilege 15
|
||
|
match: none
|
||
|
|
||
|
- name: copy file from controller to ios + scp (Default)
|
||
7 years ago
|
net_put:
|
||
7 years ago
|
src: ios1.cfg
|
||
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- result.changed == true
|
||
|
|
||
|
- name: copy file from controller to ios + dest specified
|
||
7 years ago
|
net_put:
|
||
7 years ago
|
src: ios1.cfg
|
||
|
dest: ios.cfg
|
||
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- result.changed == true
|
||
|
|
||
7 years ago
|
- debug: msg="END ios cli/net_put.yaml on connection={{ ansible_connection }}"
|