cisco.nxos.nxos_vtp_password (7.0.0) — module

Manages VTP password configuration.

| "added in version" 1.0.0 of cisco.nxos"

Authors: Gabriele Gerbino (@GGabriele)

Install collection

Install with ansible-galaxy collection install cisco.nxos:==7.0.0


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 7.0.0

Description

Manages VTP password configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ENSURE VTP PASSWORD IS SET
- cisco.nxos.nxos_vtp_password:
    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
- cisco.nxos.nxos_vtp_password:
    state: absent
    host: '{{ inventory_hostname }}'
    username: '{{ un }}'
    password: '{{ pwd }}'

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manage the state of the resource
    type: str

vtp_password:
    description:
    - VTP password
    type: str

Outputs

changed:
  description: check to see if a change was made on the device
  returned: always
  sample: true
  type: bool
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