Added in version 1.8
Offers ability to reboot Comware 7 devices instantlyat a scheduled time, or after a given period of time
parameter | required | default | choices | comments |
---|---|---|---|---|
reboot | yes |
|
Needs to be set to true to reboot the device | |
HH | no | |||
date | no | Specify the date at which the reboot will take place. The time parameter is required to use this parameter. Format should be MM/DD/YYYY in quotes. | ||
delay | no | Delay (in minutes) to wait to reboot the device | ||
port | no | 830 | NETCONF port number | |
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 | ||
look_for_keys | no | False | Whether searching for discoverable private key files in ~/.ssh/ |
# name: reboot immedidately - comware_reboot: reboot=true username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # name: reboot at 5:00 - comware_reboot: reboot=true time="05:00" username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # name: reboot in 5 minutes - comware_reboot: reboot=true delay="05:00" username={{ username }} password={{ password }} hostname={{ inventory_hostname }} # name: reboot at 22:00 on July 30 2015 - comware_reboot: reboot=true time="22:00" date="07/10/2015" username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
Time/date and delay are mutually exclusive parametersTime is required when specifying dateReboot must be set to true to reboot the deviceThis module is not idempotent