community.general.dladm_etherstub (0.1.1) — module

Manage etherstubs 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

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