enfence.powerha_aix.fc (1.3.2) — module

manage file_collection resource in PowerHA cluster

| "added in version" 1.3.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 file_collection resource in PowerHA cluster.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# create file collection
- name: file collection profiles
  enfence.powerha_aix.fc:
    name: profiles
    sync_when_changed: true
    sync_with_cluster: true
    files:
      - /home/sapadm/.profile
      - /home/sapadm/.login
      - /home/sapadm/.sapenv.sh
      - /home/sapadm/.dbenv.sh
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# manually synchronize collection
- name: synchronize profiles fc
  enfence.powerha_aix.fc:
    name: profiles
    state: synced
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# delete file collection
- name: delete file collection profiles
  enfence.powerha_aix.fc:
    name: profiles
    state: absent

Inputs

    
name:
    description: name of the file collection.
    required: true
    type: str

files:
    description:
    - list of files to be synchronized between cluster nodes.
    elements: str
    required: false
    type: list

state:
    choices:
    - present
    - absent
    - synced
    default: present
    description:
    - the desired state of the file collection - C(present), C(absent).
    required: false
    type: str

description:
    aliases:
    - desc
    - descr
    description: description of the file collection.
    required: false
    type: str

sync_when_changed:
    description:
    - if I(true), the file collection will be checked for changes automatically by the
      cluster.
    - if the cluster detects changes on the files in the collection, they will be automatically
      propagated to other nodes.
    required: false
    type: bool

sync_with_cluster:
    description:
    - if I(true), the file collection will be automatically synchronized during cluster
      synchronization.
    required: false
    type: bool

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