ansible.builtin.dladm_etherstub (v2.9.27) — module

Manage etherstubs on Solaris/illumos systems.

| "added in version" 2.2 of ansible.builtin"

Authors: Adam Števko (@xen0l)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Create or delete etherstubs on Solaris/illumos systems.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create 'stub0' etherstub
- dladm_etherstub:
    name: stub0
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Remove 'stub0 etherstub
- dladm_etherstub:
    name: stub0
    state: absent

Inputs

    
name:
    description:
    - Etherstub name.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Create or delete Solaris/illumos etherstub.
    required: false

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

Outputs

name:
  description: etherstub name
  returned: always
  sample: switch0
  type: str
state:
  description: state of the target
  returned: always
  sample: present
  type: str
temporary:
  description: etherstub's persistence
  returned: always
  sample: 'True'
  type: bool