ansible / ansible.builtin / v2.5.10 / module / nxos_vrrp 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 networkansible.builtin.nxos_vrrp (v2.5.10) — module
pip
Install with pip install ansible==2.5.10
Manages VRRP configuration on NX-OS switches.
- 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
- 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
- name: Re-config with more params nxos_vrrp: interface: vlan10 group: 100 vip: 10.1.100.1 preempt: false priority: 130 authentication: AUTHKEY
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
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