ansible / ansible.builtin / v2.9.27 / module / nictagadm Manage nic tags on SmartOS systems | "added in version" 2.8 of ansible.builtin" Authors: Bruce Smith (@SmithX10) preview | supported by communityansible.builtin.nictagadm (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Create or delete nic tags on SmartOS systems.
- name: Create 'storage0' on '00:1b:21:a3:f5:4d' nictagadm: name: storage0 mac: 00:1b:21:a3:f5:4d mtu: 9000 state: present
- name: Remove 'storage0' nic tag nictagadm: name: storage0 state: absent
mac: description: - Specifies the I(mac) address to attach the nic tag to when not creating an I(etherstub). - Parameters I(mac) and I(etherstub) are mutually exclusive. type: str mtu: description: - Specifies the size of the I(mtu) of the desired nic tag. - Parameters I(mtu) and I(etherstub) are mutually exclusive. type: int name: description: - Name of the nic tag. required: true type: str force: default: false description: - When I(state) is absent set this switch will use the C(-f) parameter and delete the nic tag regardless of existing VMs. type: bool state: choices: - absent - present default: present description: - Create or delete a SmartOS nic tag. type: str etherstub: default: false description: - Specifies that the nic tag will be attached to a created I(etherstub). - Parameter I(etherstub) is mutually exclusive with both I(mtu), and I(mac). type: bool
etherstub: description: specifies if the nic tag will create and attach to an etherstub. returned: always sample: false type: bool force: description: Shows if -f was used during the deletion of a nic tag returned: always sample: false type: bool mac: description: MAC Address that the nic tag was attached to. returned: always sample: 00:1b:21:a3:f5:4d type: str mtu: description: specifies which MTU size was passed during the nictagadm add command. mtu and etherstub are mutually exclusive. returned: always sample: 1500 type: int name: description: nic tag name returned: always sample: storage0 type: str state: description: state of the target returned: always sample: present type: str