Added in version 1.8
Offers ability to config the restart file or config image or patch for the device.Supports using .ipe or .bin system and boot packages.
parameter | required | default | choices | comments |
---|---|---|---|---|
ipe_package | no | File (including abs path path) of the local ipe package. | ||
boot | no | File (including abs path) of the local boot package (.bin) | ||
system | no | File (including abs path) of the local system package (.bin) | ||
patch | no | File (including abs path) of the local patch package (.bin) | ||
deafult |
|
|||
nextstartupfile | no | Name of file that will be used for the next start. | ||
filename | no | Name of file that will be show content. | ||
show_file | no | File that will be used to store the config file content. Relative path is location of ansible playbook. If not set, no file saved. | ||
hostname | yes | IP Address or hostname of the Comware v7 device that has NETCONF enabled | ||
username | yes | Username used to login to the switch | ||
password | yes | Password used to login to the switch | ||
port | no | 830 | NETCONF port number | |
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
#Basic Install OS Bootsys comware_startup: boot='flash:/s9850_6850-cmw710-boot-r6555p01.bin' system='flash:/s9850_6850-cmw710-system-r6555p01.bin' patch='flash:/s9850_6850-cmw710-system-patch-r6555p01h31.bin' username={{ username }} password={{ password }} hostname={{ inventory_hostname }} #Basic Install OS IPE comware_startup: ipe_package='flash:/s9850-h3c.ipe' username={{ username }} password={{ password }} hostname={{ inventory_hostname }} #Config next startup file comware_startup: nextstartupfile='flash:/123.cfg' username={{ username }} password={{ password }} hostname={{ inventory_hostname }} #Show content for the existing config file comware_startup: filename='flash:/123.cfg' show_file='/root/ansible-hpe-cw7-master/123.cfg' username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
The parameters ipe_package and boot/system aremutually exclusive.makesure the files are already existing on the device.