enfence.powerha_aix.service_ip (1.3.2) — module

manage service_ip resource in PowerHA cluster

| "added in version" 1.0.0 of enfence.powerha_aix"

Authors: Andrey Klyachkin (@aklyachkin)

Install collection

Install with ansible-galaxy collection install enfence.powerha_aix:==1.3.2


Add to requirements.yml

  collections:
    - name: enfence.powerha_aix
      version: 1.3.2

Description

This module creates/deletes/changes service_ip resource in PowerHA cluster.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# create a new service ip label
- name: create a new service ip label
  enfence.powerha_aix.service_ip:
    name: clusterip
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# delete an existing service ip
- name: delete an existing service ip label
  enfence.powerha_aix.service_ip:
    name: clusterip
    state: absent

Inputs

    
name:
    description: name of the service ip label. the name must be resolvable by using C(/etc/hosts).
    required: true
    type: str

site:
    description:
    - site of the service ip.
    - added in 1.1.1
    required: false
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - the desired state of the resource - C(present) or C(absent).
    - If the resource is already defined, it will not be changed.
    required: false
    type: str

prefix:
    description:
    - bit prefix for the service ip.
    - prefix and netmask are mutually exclusive.
    required: false
    type: int

netmask:
    description:
    - netmask for the service ip.
    - prefix and netmask are mutually exclusive.
    required: false
    type: str

network:
    default: net_ether_01
    description: name of the cluster network, where the service ip should be placed.
    required: false
    type: str

Outputs

changed:
  description: set to true if the resource was changed
  returned: always
  type: bool
msg:
  description: error and informational messages
  returned: always
  type: str
rc:
  description: return code of the last executed command
  returned: always
  type: int
stderr:
  description: standard error of the last executed command
  returned: always
  type: str
stdout:
  description: standard output of the last executed command
  returned: always
  type: str