ansible.builtin.nxos_rollback (v2.9.0) — module

Set a checkpoint or rollback to a checkpoint.

| "added in version" 2.2 of ansible.builtin"

Authors: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.9.0

Description

This module offers the ability to set a configuration checkpoint file or rollback to a configuration checkpoint file on Cisco NXOS switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- nxos_rollback:
    checkpoint_file: backup.cfg
    username: "{{ un }}"
    password: "{{ pwd }}"
    host: "{{ inventory_hostname }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- nxos_rollback:
    rollback_to: backup.cfg
    username: "{{ un }}"
    password: "{{ pwd }}"
    host: "{{ inventory_hostname }}"

Inputs

    
rollback_to:
    description:
    - Name of checkpoint file to rollback to. Mutually exclusive with checkpoint_file.

checkpoint_file:
    description:
    - Name of checkpoint file to create. Mutually exclusive with rollback_to.

Outputs

filename:
  description: The filename of the checkpoint/rollback file.
  returned: success
  sample: backup.cfg
  type: str
status:
  description: Which operation took place and whether it was successful.
  returned: success
  sample: rollback executed
  type: str