community.general.nictagadm module – Manage nic tags on SmartOS systems
Note
This module is part of the community.general collection (version 4.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.nictagadm
.
Parameters
Parameter |
Comments |
---|---|
Specifies that the nic tag will be attached to a created etherstub. Parameter etherstub is mutually exclusive with both mtu, and mac. Choices:
|
|
When state is absent set this switch will use the Choices:
|
|
Specifies the mac address to attach the nic tag to when not creating an etherstub. Parameters mac and etherstub are mutually exclusive. |
|
Specifies the size of the mtu of the desired nic tag. Parameters mtu and etherstub are mutually exclusive. |
|
Name of the nic tag. |
|
Create or delete a SmartOS nic tag. Choices:
|
Examples
- name: Create 'storage0' on '00:1b:21:a3:f5:4d'
community.general.nictagadm:
name: storage0
mac: 00:1b:21:a3:f5:4d
mtu: 9000
state: present
- name: Remove 'storage0' nic tag
community.general.nictagadm:
name: storage0
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
specifies if the nic tag will create and attach to an etherstub. Returned: always Sample: false |
|
Shows if -f was used during the deletion of a nic tag Returned: always Sample: false |
|
MAC Address that the nic tag was attached to. Returned: always Sample: “00:1b:21:a3:f5:4d” |
|
specifies which MTU size was passed during the nictagadm add command. mtu and etherstub are mutually exclusive. Returned: always Sample: 1500 |
|
nic tag name Returned: always Sample: “storage0” |
|
state of the target Returned: always Sample: “present” |
Authors
Bruce Smith (@SmithX10)
Collection links
Issue Tracker Repository (Sources) Submit a bug report Request a feature Communication