enfence.powerha_aix.appcontroller (1.3.2) — module

manage application_controller 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 or deletes application_controller resource in PowerHA cluster.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# create a new application controller
- name: create a new application controller
  enfence.powerha_aix.appcontroller:
    name: ac_oracle
    start: /usr/local/bin/start_ora
    stop: /usr/local/bin/stop_ora
    mode: foreground
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# delete an existing application controller
- name: delete an existing application controller
  enfence.powerha_aix.appcontroller:
    name: ac_oracle
    state: absent

Inputs

    
mode:
    aliases:
    - startupmode
    - startup_mode
    choices:
    - foreground
    - background
    default: background
    description: mode of starting scripts. background or foreground. by default background.
    required: false
    type: str

name:
    description: name of the application controller.
    required: true
    type: str

stop:
    aliases:
    - stopscript
    - stop_script
    description: path to the stop script. the attribute is required if application controller
      is created.
    required: false
    type: path

start:
    aliases:
    - startscript
    - start_script
    description: path to the start script. the attribute is required if application controller
      is created.
    required: false
    type: path

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

cpumon:
    aliases:
    - cpu_usage_monitor
    - usage_monitor
    - cpu_monitor
    description:
    - enable or disable CPU monitoring. By default is disabled.
    - added in 1.1.3
    required: false
    type: bool

cpuproc:
    aliases:
    - cpu_usage_process
    - process_to_monitor_cpu_usage
    - cpu_usage_monitor_process
    - usage_process
    - cpu_process
    description:
    - full path of the application binary to monitor.
    - added in 1.1.3
    required: false
    type: path

cpuintvl:
    aliases:
    - cpu_usage_interval
    - cpu_usage_monitor_interval
    - usage_interval
    - cpu_interval
    description:
    - interval in minutes to monitor cpu usage by the process. valid values are 1 to 120.
    - added in 1.1.3
    required: false
    type: int

monitors:
    aliases:
    - monitor
    description:
    - application monitors.
    - added in 1.1.3
    elements: str
    required: false
    type: list

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