community / community.network / 5.0.2 / module / ce_reboot Reboot a HUAWEI CloudEngine switches. Authors: Gong Jianjun (@QijunPan)community.network.ce_reboot (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
Reboot a HUAWEI CloudEngine switches.
- name: Reboot module test hosts: cloudengine connection: local gather_facts: false vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: Reboot the device community.network.ce_reboot: confirm: true save_config: true provider: "{{ cli }}"
confirm: description: - Safeguard boolean. Set to true if you're sure you want to reboot. required: true type: bool save_config: default: false description: - Flag indicating whether to save the configuration. required: false type: bool
rebooted: description: Whether the device was instructed to reboot. returned: success sample: true type: bool