mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
2f126829bf
* Initial cnos_image commit * corrected required/default values in documentaiton * fixed choices for imgtype * removed a colon * Move roles to integration/roles directory and remove aliases file. * update module short description * Change module directory name to Lenovo * change import cnos statement
16 lines
1.3 KiB
YAML
16 lines
1.3 KiB
YAML
# This contain sample Image download tasks
|
|
---
|
|
|
|
- name: Test Image transfer
|
|
cnos_image: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_image_{{ inventory_hostname }}_output.txt protocol='{{item.protocol}}' serverip='{{item.serverip}}' imgpath={{ hostvars[inventory_hostname]['imgpath']}} imgtype='{{item.imgtype}}' serverusername='{{item.serverusername}}' serverpassword='{{item.serverpassword}}'
|
|
with_items: "{{test_image_data1}}"
|
|
|
|
#Root folder will be different for SFTP/SCP and TFTP
|
|
#The following task is commented.
|
|
#Before trying this, please change in /etc/ansible/hosts file
|
|
#and place an image with reference to your tftp-root folder
|
|
#- name: Test Image tftp
|
|
# cnos_image: host={{ inventory_hostname }} username={{ hostvars[inventory_hostname]['username']}} password={{ hostvars[inventory_hostname]['password']}} deviceType={{ hostvars[inventory_hostname]['deviceType']}} outputfile=./results/cnos_image_{{ inventory_hostname }}_output.txt protocol='{{item.protocol}}' serverip='{{item.serverip}}' imgpath={{ hostvars[inventory_hostname]['imgpath']}} imgtype='{{item.imgtype}}'
|
|
# with_items: "{{test_image_data2}}"
|
|
|
|
# Completed file
|