community.network.ipadm_addrprop – Manage IP address properties on Solaris/illumos systems.

Note

This plugin is part of the community.network collection (version 2.1.1).

To install it use: ansible-galaxy collection install community.network.

To use it in a playbook, specify: community.network.ipadm_addrprop.

Synopsis

  • Modify IP address properties on Solaris/illumos systems.

Parameters

Parameter Choices/Defaults Comments
addrobj
string / required
Specifies the address object we want to manage.

aliases: nic, interface
property
string / required
Specifies the name of the address property we want to manage.

aliases: name
state
string
    Choices:
  • present ←
  • absent
  • reset
Set or reset the property value.
temporary
boolean
    Choices:
  • no ←
  • yes
Specifies that the address property value is temporary. Temporary values do not persist across reboots.
value
string
Specifies the value we want to set for the address property.

Examples

- name: Mark address on addrobj as deprecated
  community.network.ipadm_addrprop: property=deprecated value=on addrobj=e1000g0/v6

- name: Set network prefix length for addrobj
  community.network.ipadm_addrprop: addrobj=bge0/v4 name=prefixlen value=26

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
addrobj
string
always
address object name

Sample:
bge0/v4
property
string
always
property name

Sample:
deprecated
state
string
always
state of the target

Sample:
present
temporary
boolean
always
specifies if operation will persist across reboots

Sample:
True
value
string
when value is provided
property value

Sample:
26


Authors

  • Adam Števko (@xen0l)