community.general.ipadm_prop (0.1.1) — module

Manage protocol properties on Solaris/illumos systems.

Authors: Adam Števko (@xen0l)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Modify protocol properties on Solaris/illumos systems.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Set TCP receive buffer size
- ipadm_prop: protocol=tcp property=recv_buf value=65536
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Reset UDP send buffer size to the default value
- ipadm_prop: protocol=udp property=send_buf state=reset

Inputs

    
state:
    choices:
    - present
    - absent
    - reset
    default: present
    description:
    - Set or reset the property value.
    required: false

value:
    description:
    - Specifies the value we want to set for the property.
    required: false

property:
    description:
    - Specifies the name of property we want to manage.
    required: true

protocol:
    description:
    - Specifies the protocol for which we want to manage properties.
    required: true

temporary:
    default: false
    description:
    - Specifies that the property value is temporary. Temporary property values do not
      persist across reboots.
    required: false
    type: bool

Outputs

property:
  description: name of the property
  returned: always
  sample: recv_maxbuf
  type: str
protocol:
  description: property's protocol
  returned: always
  sample: TCP
  type: str
state:
  description: state of the target
  returned: always
  sample: present
  type: str
temporary:
  description: property's persistence
  returned: always
  sample: 'True'
  type: bool
value:
  description: value of the property. May be int or string depending on property.
  returned: always
  sample: '''1024'' or ''never'''
  type: int