community.general.ce_reboot (0.1.1) — module

Reboot a HUAWEI CloudEngine switches.

Authors: Gong Jianjun (@QijunPan)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Reboot a HUAWEI CloudEngine switches.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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 }}"

Inputs

    
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

Outputs

rebooted:
  description: Whether the device was instructed to reboot.
  returned: success
  sample: true
  type: bool