ansible.builtin.nxos_vtp_password (v2.3.3.0-1) — module

Manages VTP password configuration.

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

Authors: Gabriele Gerbino (@GGabriele)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

Description

Manages VTP password configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ENSURE VTP PASSWORD IS SET
- nxos_vtp_password:
    password: ntc
    state: present
    host: "{{ inventory_hostname }}"
    username: "{{ un }}"
    password: "{{ pwd }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ENSURE VTP PASSWORD IS REMOVED
- nxos_vtp_password:
    password: ntc
    state: absent
    host: "{{ inventory_hostname }}"
    username: "{{ un }}"
    password: "{{ pwd }}"

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manage the state of the resource
    required: false

vtp_password:
    default: null
    description:
    - VTP password
    required: false

Outputs

changed:
  description: check to see if a change was made on the device
  returned: always
  sample: true
  type: boolean
end_state:
  description: k/v pairs of vtp after module execution
  returned: always
  sample:
    domain: ntc
    version: '1'
    vtp_password: new_ntc
  type: dict
existing:
  description:
  - k/v pairs of existing vtp
  returned: always
  sample:
    domain: ntc
    version: '1'
    vtp_password: ntc
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    vtp_password: new_ntc
  type: dict
updates:
  description: command sent to the device
  returned: always
  sample:
  - vtp password new_ntc
  type: list