service_ip – manage service_ip resource in PowerHA cluster
Synopsis
This module creates/deletes/changes service_ip resource in PowerHA cluster.
Parameters
- name (True, str, None)
name of the service ip label. the name must be resolvable by using /etc/hosts.
- network (False, str, net_ether_01)
name of the cluster network, where the service ip should be placed.
- netmask (False, str, None)
netmask for the service ip.
- state (False, str, present)
the desired state of the resource - present or absent. If the resource is already defined, it will not be changed.
Examples
# create a new service ip label
- name: create a new service ip label
powerdevops.powerha_aix.service_ip:
name: clusterip
state: present
# delete an existing service ip
- name: delete an existing service ip label
powerdevops.powerha_aix.service_ip:
name: clusterip
state: absent
Return Values
- changed (always, bool, )
set to true if the resource was changed
- msg (always, str, )
error and informational messages
- rc (always, int, )
return code of the last executed command
- stdout (always, str, )
standard output of the last executed command
- stderr (always, str, )
standard error of the last executed command