community / community.network / 2.3.0 / module / ce_reboot Reboot a HUAWEI CloudEngine switches. Authors: Gong Jianjun (@QijunPan)community.network.ce_reboot (2.3.0) — module
Install with ansible-galaxy collection install community.network:==2.3.0
collections: - name: community.network version: 2.3.0
Reboot a HUAWEI CloudEngine switches.
- name: Reboot module test hosts: cloudengine connection: local gather_facts: no 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