ansible / ansible.builtin / v2.9.0 / module / ucs_lan_connectivity Configures LAN Connectivity Policies on Cisco UCS Manager | "added in version" 2.5 of ansible.builtin" Authors: David Soper (@dsoper2), CiscoUcs (@CiscoUcs) preview | supported by certifiedansible.builtin.ucs_lan_connectivity (v2.9.0) — module
pip
Install with pip install ansible==2.9.0
Configures LAN Connectivity Policies on Cisco UCS Manager.
Examples can be used with the UCS Platform Emulator U(https://communities.cisco.com/ucspe).
- name: Configure LAN Connectivity Policy ucs_lan_connectivity: hostname: 172.16.143.150 username: admin password: password name: Cntr-FC-Boot vnic_list: - name: eno1 vnic_template: Cntr-Template adapter_policy: Linux - name: eno2 vnic_template: Container-NFS-A adapter_policy: Linux - name: eno3 vnic_template: Container-NFS-B adapter_policy: Linux iscsi_vnic_list: - name: iSCSIa overlay_vnic: eno1 iscsi_adapter_policy: default vlan_name: Container-MGMT-VLAN - name: iSCSIb overlay_vnic: eno3 iscsi_adapter_policy: default vlan_name: Container-TNT-A-NFS
- name: Remove LAN Connectivity Policy ucs_lan_connectivity: hostname: 172.16.143.150 username: admin password: password name: Cntr-FC-Boot state: absent
name: description: - The name of the LAN Connectivity Policy. - This name can be between 1 and 16 alphanumeric characters. - 'You cannot use spaces or any special characters other than - (hyphen), "_" (underscore), : (colon), and . (period).' - You cannot change this name after the policy is created. required: true port: description: - Port number to be used during connection (by default uses 443 for https and 80 for http connection). type: int proxy: description: - If use_proxy is no, specfies proxy to be used for connection. e.g. 'http://proxy.xy.z:8080' type: str state: choices: - present - absent default: present description: - If C(present), will verify LAN Connectivity Policies are present and will create if needed. - If C(absent), will verify LAN Connectivity Policies are absent and will delete if needed. org_dn: default: org-root description: - Org dn (distinguished name) use_ssl: default: true description: - If C(no), an HTTP connection will be used instead of the default HTTPS connection. type: bool hostname: description: - IP address or hostname of Cisco UCS Manager. - Modules can be used with the UCS Platform Emulator U(https://cs.co/ucspe) required: true type: str password: description: - Password for Cisco UCS Manager authentication. required: true type: str username: default: admin description: - Username for Cisco UCS Manager authentication. type: str use_proxy: default: true description: - If C(no), will not use the proxy as defined by system environment variable. type: bool vnic_list: description: - List of vNICs used by the LAN Connectivity Policy. - vNICs used by the LAN Connectivity Policy must be created from a vNIC template. suboptions: adapter_policy: description: - The name of the Ethernet adapter policy. - A user defined policy can be used, or one of the system defined policies. name: description: - The name of the vNIC. required: true order: default: unspecified description: - String specifying the vNIC assignment order (e.g., '1', '2'). state: choices: - present - absent default: present description: - If C(present), will verify vnic is configured within policy. If C(absent), will verify vnic is absent from policy. vnic_template: description: - The name of the vNIC template. required: true version_added: '2.8' version_added_collection: ansible.builtin description: aliases: - descr description: - A description of the LAN Connectivity Policy. - Cisco recommends including information about where and when to use the policy. - Enter up to 256 characters. - 'You can use any characters or spaces except the following:' - '` (accent mark), (backslash), ^ (carat), " (double quote), = (equal sign), > (greater than), < (less than), or '' (single quote).' iscsi_vnic_list: description: - List of iSCSI vNICs used by the LAN Connectivity Policy. suboptions: iscsi_adapter_policy: description: - The iSCSI adapter policy associated with this iSCSI vNIC. mac_address: default: derived description: - The MAC address associated with this iSCSI vNIC. - If the MAC address is not set, Cisco UCS Manager uses a derived MAC address. name: description: - The name of the iSCSI vNIC. required: true overlay_vnic: description: - The LAN vNIC associated with this iSCSI vNIC. state: choices: - present - absent default: present description: - If C(present), will verify iscsi vnic is configured within policy. If C(absent), will verify iscsi vnic is absent from policy. vlan_name: default: default description: - The VLAN used for the iSCSI vNIC. version_added: '2.8' version_added_collection: ansible.builtin