community.network.dladm_linkprop module – Manage link properties on Solaris/illumos systems.
Note
This module is part of the community.network collection (version 5.0.0).
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.network
.
To use it in a playbook, specify: community.network.dladm_linkprop
.
Synopsis
Set / reset link properties on Solaris/illumos systems.
Parameters
Parameter |
Comments |
---|---|
Link interface name. |
|
Specifies the name of the property we want to manage. |
|
Set or reset the property value. Choices:
|
|
Specifies that lin property configuration is temporary. Temporary link property configuration does not persist across reboots. Choices:
|
|
Specifies the value we want to set for the link property. |
Examples
- name: Set 'maxbw' to 100M on e1000g1
community.network.dladm_linkprop: name=e1000g1 property=maxbw value=100M state=present
- name: Set 'mtu' to 9000 on e1000g1
community.network.dladm_linkprop: name=e1000g1 property=mtu value=9000
- name: Reset 'mtu' property on e1000g1
community.network.dladm_linkprop: name=e1000g1 property=mtu state=reset
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
link name Returned: always Sample: |
|
property name Returned: always Sample: |
|
state of the target Returned: always Sample: |
|
specifies if operation will persist across reboots Returned: always Sample: |
|
property value Returned: always Sample: |