community.general.ipadm_if (0.1.1) — module

Manage IP interfaces 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, delete, enable or disable IP interfaces on Solaris/illumos systems.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Create vnic0 interface
- ipadm_if:
    name: vnic0
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Disable vnic0 interface
- ipadm_if:
    name: vnic0
    state: disabled

Inputs

    
name:
    description:
    - IP interface name.
    required: true

state:
    choices:
    - present
    - absent
    - enabled
    - disabled
    default: present
    description:
    - Create or delete Solaris/illumos IP interfaces.
    required: false

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

Outputs

name:
  description: IP interface name
  returned: always
  sample: vnic0
  type: str
state:
  description: state of the target
  returned: always
  sample: present
  type: str
temporary:
  description: persistence of a IP interface
  returned: always
  sample: 'True'
  type: bool