community / community.general / 0.1.1 / module / ce_reboot Reboot a HUAWEI CloudEngine switches. Authors: Gong Jianjun (@QijunPan) preview | supported by communitycommunity.general.ce_reboot (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
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 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