ansible.builtin.nxos_vrrp (v2.5.10) — module

Manages VRRP configuration on NX-OS switches.

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

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

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.5.10

Description

Manages VRRP configuration on NX-OS switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure vrrp group 100 and vip 10.1.100.1 is on vlan10
  nxos_vrrp:
    interface: vlan10
    group: 100
    vip: 10.1.100.1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure removal of the vrrp group config
  # vip is required to ensure the user knows what they are removing
  nxos_vrrp:
    interface: vlan10
    group: 100
    vip: 10.1.100.1
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Re-config with more params
  nxos_vrrp:
    interface: vlan10
    group: 100
    vip: 10.1.100.1
    preempt: false
    priority: 130
    authentication: AUTHKEY

Inputs

    
vip:
    default: null
    description:
    - VRRP virtual IP address.
    required: false

group:
    description:
    - VRRP group number.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Specify desired state of the resource.
    required: false

preempt:
    choices:
    - 'True'
    - 'False'
    description:
    - Enable/Disable preempt.

priority:
    default: null
    description:
    - VRRP priority.
    required: false

interface:
    description:
    - Full name of interface that is being managed for VRRP.
    required: true

admin_state:
    choices:
    - shutdown
    - no shutdown
    default: no shutdown
    description:
    - Used to enable or disable the VRRP process.
    required: false

authentication:
    default: null
    description:
    - Clear text authentication string.
    required: false

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - interface vlan10
  - vrrp 150
  - address 10.1.15.1
  - authentication text testing
  - no shutdown
  type: list