cwilloughby_bw.ucsc.ucs_vlan_to_group (0.0.6) — module

Add VLANs to a VLAN Group. Requires VLAN and VLAN Group to already be created on UCS prior to running module.

| "added in version" 2.8 of cwilloughby_bw.ucsc"

Authors: Derrick Johnson @derricktj

preview | supported by community

Install collection

Install with ansible-galaxy collection install cwilloughby_bw.ucsc:==0.0.6


Add to requirements.yml

  collections:
    - name: cwilloughby_bw.ucsc
      version: 0.0.6

Description

Add VLANs to VLAN Groups on Cisco UCS Manager.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Configure VLAN
  ucs_vlan_to_group:
    hostname: 1.1.1.1
    username: admin
    password: password
    vlangroup: VLANGROUP
    vlanname: VLANNAME
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove VLAN
  ucs_vlan_to_group:
    hostname: 1.1.1.1
    username: admin
    password: password
    vlangroup: VLANGROUP
    vlanname: VLANNAME
    state: absent

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - If C(present), will verify VLANs are present and will create if needed.
    - If C(absent), will verify VLANs are absent and will delete if needed.

vlanname:
    description:
    - The name assigned to the VLAN.
    - The VLAN name is case sensitive.
    - This name can be between 1 and 32 alphanumeric characters.
    - 'You cannot use spaces or any special characters other than - (hyphen), "_" (underscore),
      : (colon), and . (period).'
    required: true

vlangroup:
    description:
    - The name assigned to the VLAN Group.
    - The VLAN Group name is case sensitive.
    - This name can be between 1 and 32 alphanumeric characters.
    - 'You cannot use spaces or any special characters other than - (hyphen), "_" (underscore),
      : (colon), and . (period).'
    required: true