mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
rename network_get network_put modules to net_get net_put (#40381)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- debug: msg="START ios cli/network_get.yaml on connection={{ ansible_connection }}"
|
||||
- debug: msg="START ios cli/net_get.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
# Add minimal testcase to check args are passed correctly to
|
||||
# implementation module and module run is successful.
|
||||
@@ -13,7 +13,7 @@
|
||||
match: none
|
||||
|
||||
- name: setup (copy file to be fetched from device)
|
||||
network_put:
|
||||
net_put:
|
||||
src: ios1.cfg
|
||||
register: result
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
- result.changed == true
|
||||
|
||||
- name: get the file from device with dest unspecified
|
||||
network_get:
|
||||
net_get:
|
||||
src: ios1.cfg
|
||||
register: result
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
- result.changed == true
|
||||
|
||||
- name: get the file from device with relative destination
|
||||
network_get:
|
||||
net_get:
|
||||
src: ios1.cfg
|
||||
dest: 'ios_{{ ansible_host }}.cfg'
|
||||
register: result
|
||||
@@ -40,4 +40,4 @@
|
||||
that:
|
||||
- result.changed == true
|
||||
|
||||
- debug: msg="END ios cli/network_get.yaml on connection={{ ansible_connection }}"
|
||||
- debug: msg="END ios cli/net_get.yaml on connection={{ ansible_connection }}"
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- debug: msg="START ios cli/network_put.yaml on connection={{ ansible_connection }}"
|
||||
- debug: msg="START ios cli/net_put.yaml on connection={{ ansible_connection }}"
|
||||
|
||||
# Add minimal testcase to check args are passed correctly to
|
||||
# implementation module and module run is successful.
|
||||
@@ -13,7 +13,7 @@
|
||||
match: none
|
||||
|
||||
- name: copy file from controller to ios + scp (Default)
|
||||
network_put:
|
||||
net_put:
|
||||
src: ios1.cfg
|
||||
register: result
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
- result.changed == true
|
||||
|
||||
- name: copy file from controller to ios + dest specified
|
||||
network_put:
|
||||
net_put:
|
||||
src: ios1.cfg
|
||||
dest: ios.cfg
|
||||
register: result
|
||||
@@ -31,4 +31,4 @@
|
||||
that:
|
||||
- result.changed == true
|
||||
|
||||
- debug: msg="END ios cli/network_put.yaml on connection={{ ansible_connection }}"
|
||||
- debug: msg="END ios cli/net_put.yaml on connection={{ ansible_connection }}"
|
||||
Reference in New Issue
Block a user